Issue/approve pending certificate requests with certutil


is possible somehow approve/issue pending certificate requests on standalone ca command line? certutil seems offer -deny , -revoke commands, not -issue.

thanks ondrej.

 

definitely yes. use '-resubmit' option. since option is ambigous, property calls icertadmin::resubmitrequest() method:

http://msdn.microsoft.com/en-us/library/aa383250(vs.85).aspx

(here can detailed explanation).

also may interesting in interesting example in powershell:

function issue-pendingrequest {  [cmdletbinding()]    param(      [parameter(mandatory = $true, valuefompipeline = $true)]      [string]$caconfig,      [parameter(mandatory = $true)]      [int]$requestid    )    try {$certadmin = new-object -comobject certificateauthority.admin}    catch {write-warning "unable instantiate icertadmin2 object!"; return}    try {      $status = switch ($certadmin.resubmitrequest($caconfig,$requestid)) {        0 {"the request not completed."}        1 {"the request failed."}        2 {"the request denied."}        3 {"the certificate issued."}        4 {"the certificate issued separately"}        5 {"the request taken under submission."}        6 {"the certificate revoked."}      }    }    catch {$_; return}    write-host "operation status request '$requestid': $status"  }

in order simplify function usage can hardcode ca config string offline cas. have use code this:

issue-pendingrequest 145

where 145 — request id.

 


http://en-us.sysadmins.lv

 



Windows Server  >  Security



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file