openssl pkcs12 -export -out bundle.p12 -inkey user.key -in user.crt -certfile authority.crt
openssl pkcs12 -in bundle.p12 -nocerts -out user.encrypted.key && openssl rsa -in user.encrypted.key -out user.key
openssl pkcs12 -in bundle.p12 -clcerts -nokeys -out user.crt
openssl pkcs12 -in bundle.p12 -cacerts -nokeys -out authority.crt