Error parsing certificate request *RESOLVED*

Good Day,

I am trying to sign a CSR produced from within ADSelfService Plus, but when I try to download the certificate having inserted the CSR File Data it fails with the following error: -
{ “type”: “urn:acme:error:malformed”, “detail”: “Error parsing certificate request: asn1: syntax error: sequence truncated”, “status”: 400 }

Domain: https://helpdesk.stockturn.com
Command: GUI within ADSelfService Plus
Output:
-----BEGIN NEW CERTIFICATE REQUEST----- MIIDLjCCAhYCAQAwgZUxCzAJBgNVBAYTAlVLMRIwEAYDVQQIEwlNaWRkbGVzZXgxGjAYBgNVBAcT EVN1bmJ1cnktb24tVGhhbWVzMR8wHQYDVQQKExZTdG9ja3R1cm4gU2VydmljZXMgTHRkMRQwEgYD VQQLEwtIZWFkIE9mZmljZTEfMB0GA1UEAxMWaGVscGRlc2suc3RvY2t0dXJuLmNvbTCCASIwDQYJ KoZIhvcNAQEBBQADggEPADCCAQoCggEBALCY04fjix06Fsv+F7R4Kk6+0NnCL3I+2/kas5XgPphH 9DdUdieZnQNxPH2amzDB58Bw+gJKFFIuXB4FqklaXubQRz7LfRGQI/kpJe+j4KMkNbpdIXdaUz2D XzbwsAEj1XHPyLG2Ldldq6l7eyUIvPMlGxfRciBTHJLQDiiyypNCvefQF6guDL7XNoaq63oEcWy/ ba1bzlUI5MYYu/ZGIQAk2Ic3ceW+Hkl+hg2CviFBEBaHacbq4w7Pf2EHejkvX7811m4duxCVSVdo 60b1u6j9TUB/mqO2BSjvvmgnO1sc2u0OkX+ukN7HC9+wX35CetykuqrdXMkrrfwiSxjf4lsCAwEA AaBTMFEGCSqGSIb3DQEJDjFEMEIwIQYDVR0RBBowGIIWaGVscGRlc2suc3RvY2t0dXJuLmNvbTAd BgNVHQ4EFgQUSdS5ke9GAWU/mtCzzRgcRib5gvYwDQYJKoZIhvcNAQELBQADggEBAEfROWDkGhdh NoYM+TL4MXoGqWp2TxqAmQH1JfduA/GjiBCdDxxHBv+qR6i+b+RpXIa2N/3MolP4ilKs/355szp3 7JG2LMTmUnmQYfRYXLYC7+d6yaGnpYEPc9kIdHjJdbFjnxZggUv3+yVJ36NwM+zMX+FjAFRlQMvF cjmphPWPEasNKAU7gSRjUmmcvsnycoA7rflWIQi4cnVJNxjti+B7GKTsNVnXFfN/Ry3G89HQWyeO v7x3F5zOuCBSNC+o9pFnbAwDoDy+470UsaGH5MQkFTg7HusUxh6z73+bBsp7H3l63JTy0sElsVww Jzef6t/hOicoRIsnGnotvMHxmXA= -----END NEW CERTIFICATE REQUEST-----

OS: Windows 2003
Web Server: N/A
Hosting Provider: N/A

Any assistance appreciated.

Regards
Chris

Hi @Chris75,

Where did you insert the CSR file data and where did you try to download the certificate?

Are you sure that it was pasted correctly without removing line breaks? For example, in the version that you pasted here on the forum, the last line

Jzef6t/hOicoRIsnGnotvMHxmXA= -----END NEW CERTIFICATE REQUEST-----

appears as a single line but should really be two separate lines in the CSR.

Thank you @schoen for your reply,

Sorry for the ambiguity I am enetring the CSR file into sslforfree web site to download the certificate from there.

I have just used copy and paste to enter the data into a text editor and the whole of the data is one long string from: -
"-----BEGIN NEW CERTIFICATE REQUEST----- M" to “= -----END NEW CERTIFICATE REQUEST-----”

OK rather than open the file in the program I have found where the program stores the CSR File, from there I have opened the file with a text editor and Copied and pasted the file into sslforfree; but I get the same error.

-----BEGIN NEW CERTIFICATE REQUEST-----
MIIDLjCCAhYCAQAwgZUxCzAJBgNVBAYTAlVLMRIwEAYDVQQIEwlNaWRkbGVzZXgxGjAYBgNVBAcT
EVN1bmJ1cnktb24tVGhhbWVzMR8wHQYDVQQKExZTdG9ja3R1cm4gU2VydmljZXMgTHRkMRQwEgYD
VQQLEwtIZWFkIE9mZmljZTEfMB0GA1UEAxMWaGVscGRlc2suc3RvY2t0dXJuLmNvbTCCASIwDQYJ
KoZIhvcNAQEBBQADggEPADCCAQoCggEBALCY04fjix06Fsv+F7R4Kk6+0NnCL3I+2/kas5XgPphH
9DdUdieZnQNxPH2amzDB58Bw+gJKFFIuXB4FqklaXubQRz7LfRGQI/kpJe+j4KMkNbpdIXdaUz2D
XzbwsAEj1XHPyLG2Ldldq6l7eyUIvPMlGxfRciBTHJLQDiiyypNCvefQF6guDL7XNoaq63oEcWy/
ba1bzlUI5MYYu/ZGIQAk2Ic3ceW+Hkl+hg2CviFBEBaHacbq4w7Pf2EHejkvX7811m4duxCVSVdo
60b1u6j9TUB/mqO2BSjvvmgnO1sc2u0OkX+ukN7HC9+wX35CetykuqrdXMkrrfwiSxjf4lsCAwEA
AaBTMFEGCSqGSIb3DQEJDjFEMEIwIQYDVR0RBBowGIIWaGVscGRlc2suc3RvY2t0dXJuLmNvbTAd
BgNVHQ4EFgQUSdS5ke9GAWU/mtCzzRgcRib5gvYwDQYJKoZIhvcNAQELBQADggEBAEfROWDkGhdh
NoYM+TL4MXoGqWp2TxqAmQH1JfduA/GjiBCdDxxHBv+qR6i+b+RpXIa2N/3MolP4ilKs/355szp3
7JG2LMTmUnmQYfRYXLYC7+d6yaGnpYEPc9kIdHjJdbFjnxZggUv3+yVJ36NwM+zMX+FjAFRlQMvF
cjmphPWPEasNKAU7gSRjUmmcvsnycoA7rflWIQi4cnVJNxjti+B7GKTsNVnXFfN/Ry3G89HQWyeO
v7x3F5zOuCBSNC+o9pFnbAwDoDy+470UsaGH5MQkFTg7HusUxh6z73+bBsp7H3l63JTy0sElsVww
Jzef6t/hOicoRIsnGnotvMHxmXA=
-----END NEW CERTIFICATE REQUEST-----

Ah I have sorted it; I had to remove the word “NEW” from both the Header and Footer!

Ah, that’s interesting. This is an old issue, but most recent software is tolerant of both forms!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.