2 Answers
- Newest
- Most votes
- Most comments
0
Hi,
We get the same error even with the option you suggested with AWS CLI version 2.9 Any other suggestions?
Regards Sriram
answered 2 years ago
0
Hi bsriramprasad,
are you using the AWS CLI version 2? If yes try to add --cli-binary-format raw-in-base64-out
to your command to issue the certificate.
Cheers,
Philipp
Relevant content
- asked 6 years ago
- asked a year ago
- Can I use ACM to issue private certificates when the AWS Private CA validity is less than 13 months?AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 years ago
Can you provide the exact error message that you get?
error occurred (ValidationException) when calling the IssueCertificate operation: 1 validation error detected: Value at 'csr' failed to satisfy constraint: Member must satisfy regular expression pattern: -----BEGIN CERTIFICATE REQUEST-----\r?\n([A-Za-z0-9/+]{64}\r?\n)*[A-Za-z0-9/+]{1,64}={0,2}\r?\n-----END CERTIFICATE REQUEST-----(\r?\n)?.
As mentioned in my original question, CSR content sent to either API calls is same but one throws validation error and the other doesn't.
Can you try
fileb://...
instead offile://...
We already tried that with similar response, we believe the issue is with expecting the line length to be of size 64? We referred to the issue discussion while trying that https://github.com/aws/aws-cli/issues/5011
Can you share the (openssl) commands to create the key pair and csr? (Not the content of your files).