locked
Is challengePassword supported in a CSR?

    Question

  • Trying to add a challengePassword to a CSR results in a error "The String contains an invalid x500 name attribute key, old, value or delimiter.".


    Please suggest the right way to add it. Below is my sample certificate.


    CertificateRequestProperties^ reqProp = ref new CertificateRequestProperties();

    reqProp->FriendlyName = L"My Certificate";

    //--No error if I remove the challengePassword.

    reqProp->Subject = L"CN = my org cert, challengePassword = abcd";

    create_task(CertificateEnrollmentManager::CreateRequestAsync(reqProp))

            .then([this, outputTextBlock](String^ req) {
                this->certificateRequest = req;
            })
            .then([this, outputTextBlock] (task<void> t)
            {
                try
                {
                    t.get();
                }
                catch(Platform::Exception^ e)
                {
                    outputTextBlock->Text += L"\n\nCertificate request creation failed with error: " + e->Message;
                }
            });



    • Edited by hsbgowd Thursday, May 30, 2013 9:08 PM
    Thursday, May 30, 2013 6:03 PM