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

New Post: Certificate recieving ends after 30 minutes with "The handle is invalid"

$
0
0
Suspeneded certificates are those that were revoked with reason "Certificate Hold". I'm using this code to do it:
Connect-CertificationAuthority -ComputerName $CN|Get-RevokedRequest -Filter "Disposition -eq 21","NotAfter -ge $DT","RevokedEffectiveWhen -ge $lastDT","RevokedReason -eq 6" -Property "RawCertificate" | %{[IO.File]::WriteAllText("$pathCertSuspendedValidExport\$($_.SerialNumber).cer", $_.RawCertificate)}

My final goal is to get all certificates from database sorted in four folders: issued, lapsed, revoked & suspended. And then refresh them every day.
So certificates, that were placed in Suspended folder, could become unrevoked, so i should place them in Issued folder and remove from Revoked & Suspended folders.

Viewing all articles
Browse latest Browse all 729

Trending Articles



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