Submitting certificate request

From: rskokan (rskokan_at_anect.com)
Date: 05/31/04


Date: Mon, 31 May 2004 02:36:02 -0700

I've a program that makes certificate request in PKCS#10 and submits it to a CA. In case of CA in standalone configuration, thoh works fine. But when I try to do this on a CA in enterprise configuration, I get error

CCertRequest::Submit The format of the specified domain name is invalid. 0x800704bc (WIN32: 1212)
   at CERTCLIENTLib.CCertRequestClass.Submit(Int32 Flags, String strRequest, String strAttributes, String strConfig)
   at Anect.BatchEnroll.Certificator.MakeRequest(String reqId, Int32 taskId, String cn, String givenName, String surName, String email, String& pfxFile, String& pfxPassword) in c:\inetpub\wwwroot\batchenroll\certificator.cs:line 171
   at Anect.BatchEnroll.Certificator.ProcessRequests() in c:\inetpub\wwwroot\batchenroll\certificator.cs:line 92

When I save the generated request to a file and submit it manually by MMC console, the certificate is issued without any error. So the problem must be in calling Submit method.
I call this in way Submit(CR_IN_BASE64 | CR_IN_PKCS10, req, "", caServer), where req is string with PKCS#10 request and caServer is e.g. @"10.148.2.50\CAE".

I haven't any domain name specified. So whats wrong?

Thanks,
Radek



Relevant Pages

  • RE: Webserver certificate
    ... certclient component to create certificate request and submit to the target ... It works well until you try creating and submiting a server certificate ... string doesn't meet the CA's requirement. ...
    (microsoft.public.dotnet.languages.csharp)
  • Couldnt Create Certificate Request
    ... >IIS Certificate Wizard, i got the error message as ... >"Failed to Generate the Certificate Request ... >The string contains an Invalid X500 name attribute Key, ...
    (microsoft.public.inetserver.iis.security)
  • Couldnt Create Certificate Request
    ... IIS Certificate Wizard, i got the error message as ... "Failed to Generate the Certificate Request ... The string contains an Invalid X500 name attribute Key, ...
    (microsoft.public.inetserver.iis.security)