OpenSSL 3 · Converting, hashing and encrypting

Bundle a key and certificate as PKCS#12

Create a .p12 or .pfx file, for example for Windows or Java. You are prompted for a password.

openssl pkcs12 -export -inkey private.key -in cert.pem -out bundle.p12

Official OpenSSL 3 documentation

More converting, hashing and encrypting commands

All converting, hashing and encrypting commands · OpenSSL 3 cheatsheet

Was this page helpful?