Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save smorcuend/9bd8f41ec85273f81a5f2314f27331a5 to your computer and use it in GitHub Desktop.
Save smorcuend/9bd8f41ec85273f81a5f2314f27331a5 to your computer and use it in GitHub Desktop.
Convert Certificates ( .pem, / .crt / etc ) into single-line strings for JSON payloads
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' cert-name.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment