Skip to content

Instantly share code, notes, and snippets.

@mperlet
Created June 9, 2017 06:54
Show Gist options
  • Save mperlet/b42c7649297ee95e52cfb43790422c1c to your computer and use it in GitHub Desktop.
Save mperlet/b42c7649297ee95e52cfb43790422c1c to your computer and use it in GitHub Desktop.
Shell function to convert .crt to .pem files. Useage: crt_to_pem <my_cert_without_ext>
crt_to_pem = function() {
openssl x509 -in "$1.crt" -out "$1.pem" -outform PEM
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment