|
The generation of client certificate is similar to others
openssl genrsa -rand rand.txt -out client.key 1024
openssl req -new -key client.key -out client.csr
|
Then use the CA key to sign the certificate request
openssl x509 -req -days 365 -CA ca.crt -CAkey ca.key -CAcreateserial -in client.csr -out client.crt
|
Finally, package the certificate and key in PKCS12 format so we can import it into browsers
openssl pkcs12 -export -clcerts -in client.crt -inkey client.key -out client.p12
|
By default, OpenSSL uses RC2 and 3DES for encrypting the certificate and private key.
Note that some binary distributions of OpenSSL do not have RC2 compiled in. And some browsers
don't support certificate encrypted with RC2. If so, try to use RC4 or DES etc other
encryptions for the certificate. e.g.
openssl pkcs12 -export -clcerts -in client.crt -inkey client.key -out client.p12 -certpbe des-ecb -descert
or
openssl pkcs12 -export -clcerts -in client.crt -inkey client.key -out client.p12 -certpbe rc4-40 -descert
|
You can then copy the .p12 file to the client computer for installation. For example,
on Windows 2000, just double click the file and follow the instruction to install the certificate.
|