public:common_openssl_operations
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| public:common_openssl_operations [2024/11/19 14:46] – thomas | public:common_openssl_operations [2024/11/20 08:38] (current) – thomas | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| < | < | ||
| - | openssl pkcs12 -in key.p12 -out key.pem -legacy -nocerts -nodes | + | openssl pkcs12 -in container.p12 -out key.pem -legacy -nocerts |
| + | </ | ||
| + | |||
| + | ===== Extracting a certificate in PEM format from a P12 container ===== | ||
| + | |||
| + | < | ||
| + | openssl pkcs12 -in container.p12 -out certificate.pem -legacy -nokeys | ||
| </ | </ | ||
| Line 14: | Line 20: | ||
| ===== Adding intermediate certificates to a P12 file ===== | ===== Adding intermediate certificates to a P12 file ===== | ||
| + | |||
| + | This requires a combination of some of the earlier demonstrated commands: | ||
| First, extract the key from the existing P12 container: | First, extract the key from the existing P12 container: | ||
| Line 19: | Line 27: | ||
| < | < | ||
| openssl pkcs12 -in container.p12 -out key.pem -legacy -nocerts -nodes | openssl pkcs12 -in container.p12 -out key.pem -legacy -nocerts -nodes | ||
| + | </ | ||
| + | |||
| + | If you don't already have the certificate in a separate file, extract that from the P12 container too: | ||
| + | |||
| + | < | ||
| + | openssl pkcs12 -in container.p12 -out certificate.pem -legacy -nokeys -nodes | ||
| </ | </ | ||
public/common_openssl_operations.txt · Last modified: by thomas
