You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PEM exported by the Mac OS Keychain is all of the certificates base64 encoded and then stitched together with --- BEGIN CERTIFICATE --- and --- END CERTIFICATE --- blocks. After .NET 5 its possible to load a certificate from base64 encoded text with X509Certificate2.CreateFromPem
The result is already stored in a string - instead of writing out to a file, just split that string into chunks of base64 data, stripping out the headers.
With each chunk call X509Certificate2.CreateFromPem
The PEM exported by the Mac OS Keychain is all of the certificates base64 encoded and then stitched together with --- BEGIN CERTIFICATE --- and --- END CERTIFICATE --- blocks. After .NET 5 its possible to load a certificate from base64 encoded text with
X509Certificate2.CreateFromPem
https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.x509certificates.x509certificate2.createfrompem?view=net-6.0
Proposed solution:
security
call to generate PEM.Code point to modify:
AttackSurfaceAnalyzer/Lib/Collectors/CertificateCollector.cs
Line 104 in 6cc160f
The text was updated successfully, but these errors were encountered: