Hi I'm very new to powershell , i need to fetch only issued certificates from CA server and want to export all issued certificates to csv file by using powershell but unable to find the exact command , any help would be appreciated.
i'm using this command to fetch issued certificates, but getting all certificates, how to filter only issued certificates?
certutil -view -out "RequestID,RequesterName,RequestType,NotAfter,CommonName,CertificateTemplate,SerialNumber"
1 Answer
I'd recommend looking into using the PKITools module as this module includes the ability to retrieve issued certificates with ease.
You should be able to install the module by issuing the following command:
Install-Module -Name PKITools Once the module has been installed, it should be as simple as running the below (without Format-Table if you want to work with the returned data):
Get-IssuedCertificate | Format-Table This will give you output similar to the below:
