Portál AbcLinuxu, 13. července 2025 04:58
apt-get build-dep freeradius
apt-get install libssl-dev
cd freeradius_1.0.5-0
dpkg-buildpackage -rfakeroot
Vzniklé balíky jsem přenesl na server a nainstaloval spolu se závislostmi jen freeradius_1.0.5-0_i386.deb (dpkg -i)
default_eap_type = tls
ještě jsem odkomentoval tls sekci
client 172.16.17.2/26 {
secret = yyy
shortname = ORINOCO
nastype = other
}
openssl req -new -x509 -keyout newreq.pem -out newreq.pem -days 730
echo "newreq.pem" | /usr/lib/ssl/misc/CA.pl -newca >/dev/null
openssl pkcs12 -export -in demoCA/cacert.pem -inkey newreq.pem -out root.p12 -cacerts
openssl pkcs12 -in root.p12 -out root.pem
openssl x509 -inform PEM -outform DER -in root.pem -out root.der
Server
openssl req -new -keyout newreq.pem -out newreq.pem -days 730
openssl ca -policy policy_anything -out newcert.pem -extensions xpserver_ext -extfile xpextensions -infiles newreq.pem
openssl pkcs12 -export -in newcert.pem -inkey newreq.pem -out cert-srv.p12 -clcerts
openssl pkcs12 -in cert-srv.p12 -out cert-srv.pem
openssl x509 -inform PEM -outform DER -in cert-srv.pem -out cert-srv.der
Client
openssl req -new -keyout newreq.pem -out newreq.pem -days 730
openssl ca -policy policy_anything -out newcert.pem -extensions xpclient_ext -extfile xpextensions -infiles newreq.pem
openssl pkcs12 -export -in newcert.pem -inkey newreq.pem -out cert-clt.p12 -clcerts
openssl pkcs12 -in cert-clt.p12 -out cert-clt.pem
openssl x509 -inform PEM -outform DER -in cert-clt.pem -out cert-clt.der
TLS_accept: SSLv3 write certificate request A
TLS_accept: SSLv3 flush data
TLS_accept:error in SSLv3 read client certificate A
client 192.168.0.111{
secret = yyy
shortname = ORINOCO
nastype = other
}
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.