none
Using Cert.req with parameters for prompted values. RRS feed

  • Question

  • Hello

    I need to request a certificate for a smart card from a windows service. This means I can not use the prompt and enter which smartcard to use or what the pin is. I need to find a way to this automatically with parameters if it is possible.

    I have a little inf file like this.

    Version]
    Signature= "$Windows NT$"
     
    [NewRequest]
    KeySpec = 1
    KeyUsage = 0x0
    Providertype = 1
    RequestType = PKCS10
    ProviderName = "Microsoft Base Smart Card Crypto Provider"
    Subject = "CN=Johannes"
    KeyLength = 2048
     
     
     
    [RequestAttributes]

    CertificateTemplate = TPM2

    That I call like this.

    So this opens a prompt for the user to first choose a card and then enter the pin. Can I instead of this send some parameter or something to the certreq.exe so that it takes this input directly from certreq call and not need to open a windows security gui?

    Friday, January 20, 2017 10:41 AM