8.1.6 PKCS #12 structure generation
To generate a PKCS #12 structure using the previous key and
certificate, use the command:
| | $ certtool --load-certificate cert.pem --load-privkey key.pem \
--to-p12 --outder --outfile key.p12
|
Some tools (reportedly web browsers) have problems with that file
because it does not contain the CA certificate for the certificate.
To work around that problem in the tool, you can use the
–load-ca-certificate parameter as follows:
| | $ certtool --load-ca-certificate ca.pem \
--load-certificate cert.pem --load-privkey key.pem \
--to-p12 --outder --outfile key.p12
|