Score:1

How to export the details of a digital certificate (.cer file) to a csv file using powershell?

in flag

I have a digital certificate that I'm using for a specific task. I need to export the details of the certificate such as the serial number and issuer to a csv file that is already on my computer using PowerShell. Please keep in mind this is a digital certificate that is not installed on my computer but was sent to me and I downloaded it.

JosefZ avatar
th flag
Please [edit] the question and show _what did you try so far_? [Read a .cer file](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.x509certificates.x509certificate2.-ctor?view=netcore-3.1#System_Security_Cryptography_X509Certificates_X509Certificate2__ctor_System_String_) and [working with .csv file](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/?view=powershell-7.2).
Daniel avatar
in flag
Run `certutil.exe -dump certificate.cer` and parse the output.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.