Skip to content

Instantly share code, notes, and snippets.

@naveed-ahmad-biz
Created November 5, 2017 02:27
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 naveed-ahmad-biz/726c5b66dc2133844fd39ce2f52ad9d5 to your computer and use it in GitHub Desktop.
Save naveed-ahmad-biz/726c5b66dc2133844fd39ce2f52ad9d5 to your computer and use it in GitHub Desktop.
$fileContentBytes = get-content 'C:\path\to\cert.pfx' -Encoding Byte
[System.Convert]::ToBase64String($fileContentBytes) | Out-File 'pfx-bytes.txt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment