Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save MykolaBobrytskyi/8c869a96df3fa0cabb77d41053484115 to your computer and use it in GitHub Desktop.

Select an option

Save MykolaBobrytskyi/8c869a96df3fa0cabb77d41053484115 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