i am trying to use certutil to manage my CA. Is there a possible way to user Certutil -revoke "RequestID=?"
I only see it for the SerialNumber of the certificate wich is not really handsome.
Envy
i am trying to use certutil to manage my CA. Is there a possible way to user Certutil -revoke "RequestID=?"
I only see it for the SerialNumber of the certificate wich is not really handsome.
Envy
You can use
certutil
as follows:Where
6
is the reason code (Certificate Hold
)You can write your own PowerShell function to achieve that. You will need two
CertUtil.exe
calls for that:Use
CertUtil.exe
to get the serial number of the certificate with your given$RequestId
:Parse the serial number from the output into
$SerialNumber
.Use
CertUtil.exe
to revoke the certificate:Disposition=20
will filter issued certificates only.-revoke
uses different revoke reasons. You can look them up here.