Skip to content

Instantly share code, notes, and snippets.

@sajith
Created August 22, 2018 15:08
Show Gist options
  • Save sajith/62830e02bf35bc496cee9aff359adcc2 to your computer and use it in GitHub Desktop.
Save sajith/62830e02bf35bc496cee9aff359adcc2 to your computer and use it in GitHub Desktop.
#! /bin/bash
openssl pkcs12 -in usercred.p12 -nokeys -out usercert.pem
openssl pkcs12 -in usercred.p12 -nocerts -out userkey-with-pass.pem
openssl rsa -in userkey-with-pass.pem -out userkey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment