#
######################################################################
.PHONY: all
-all: index.txt serial dh server ca client
+all: index.txt serial dh ca server client
.PHONY: client
client: client.pem
$(OPENSSL) req -new -out server.csr -keyout server.key -config ./server.cnf
chmod g+r server.key
-server.crt: server.csr ca.key ca.pem
+server.crt: ca.key ca.pem server.csr
$(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PASSWORD_CA) -out server.crt -extensions xpserver_ext -extfile xpextensions -config ./server.cnf
server.p12: server.crt
$(OPENSSL) req -new -out client.csr -keyout client.key -config ./client.cnf
chmod g+r client.key
-client.crt: client.csr ca.pem ca.key
+client.crt: ca.key ca.pem client.csr
$(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PASSWORD_CA) -out client.crt -extensions xpclient_ext -extfile xpextensions -config ./client.cnf
client.p12: client.crt
$(OPENSSL) req -new -out inner-server.csr -keyout inner-server.key -config ./inner-server.cnf
chmod g+r inner-server.key
-inner-server.crt: inner-server.csr ca.key ca.pem
+inner-server.crt: ca.key ca.pem inner-server.csr
$(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in inner-server.csr -key $(PASSWORD_CA) -out inner-server.crt -extensions xpserver_ext -extfile xpextensions -config ./inner-server.cnf
inner-server.p12: inner-server.crt
various certificates. The old test certificates can be deleted by
running the following command:
-$ rm -f *.pem *.der *.csr *.crt *.key *.p12 serial* index.txt*
+$ make destroycerts
Then, follow the instructions below for creating real certificates.
country, state, etc. Be sure that the commonName field here is
different from the commonName for the CA certificate.
-$ make server.pem
+$ make server
- This step creates the server certificate.
+ This step creates and verifies the server certificate.
If you have an existing certificate authority, and wish to create a
certificate signing request for the server certificate, edit
Client certificates are used by EAP-TLS, and optionally by EAP-TTLS
and PEAP. The following steps outline how to create a client
-certificate that is signed by the server certificate created above.
-You will have to have the password for the server certificate in the
-"input_password" and "output_password" fields of the server.cnf file.
+certificate that is signed by the CA certificate created above. You
+will have to have the password for the CA certificate in the
+"input_password" and "output_password" fields of the ca.cnf file.
$ vi client.cnf
country, state, etc. Be sure that the commonName field here is
the User-Name that will be used for logins!
-$ make client.pem
+$ make client
The users certificate will be in "emailAddress.pem",
i.e. "user@example.com.pem".
see them, it will stop doing EAP. The most visible effect is
that the client starts EAP, gets a few Access-Challenge packets,
and then a little while later re-starts EAP. If this happens, see
- the FAQ, and the comments in "raddb/mods-available/eap" for how to
+ the FAQ, and the comments in "raddb/mods-available/eap" for how to
fix it.
- Windows requires the root certificates to be on the client PC.