Quantcast
Channel: Public Key Infrastructure PowerShell module
Viewing all articles
Browse latest Browse all 729

New Post: CR - Carriage Return in RawCertificate

$
0
0
It seems that 3rd party tools aren't very smart with CR character. You can easily work around this issue by using the following line:
$approvedcert.RawCertificate.TrimEnd() | Add-Content c:\temp\ssl\upload\$filename-Encoding ASCII
In addition, I would recommend to save the file by using ASCII encoding, because not all tools support Unicode encoding for base64-encoded files (Add-Content uses Unicode by default).

Viewing all articles
Browse latest Browse all 729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>