Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zodsoft/74cc552d94f0b50a1142e637747f3896 to your computer and use it in GitHub Desktop.
Save zodsoft/74cc552d94f0b50a1142e637747f3896 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