Error trying to issue certificate from PCA

0

Hello,

I'm getting the following error when trying to enroll from PCA:
Caused by: software.amazon.awssdk.services.acmpca.model.AcmPcaException: 1 validation error detected: Value null at 'certificateAuthorityArn' failed to satisfy constraint: Member must not be null (Service: AcmPca, Status Code: 400, Request ID:

I really don't get where it's soming from, since i'm passing the caArn to the SDK:
IssueCertificateRequest req = IssueCertificateRequest.builder().certificateAuthorityArn(caArn) .signingAlgorithm(signingAlg).csr(SdkBytes.fromUtf8String(csr.getCSRasPEM())) .idempotencyToken(getRandomString(10)).validity(validity).templateArn(templateArn).build();

And caArn is not null for sure (i've checked).

Any idea?

loopkin
gefragt vor 4 Jahren538 Aufrufe
1 Antwort
0

When i dump the request, indeed the CA ARN is present:

IssueCertificateRequest(CertificateAuthorityArn=arn:aws:acm-pca:eu-west-3:1234567890:certificate-authority/xxx-xxx-xxx-xxx, Csr=SdkBytes(bytes=0x2d2d2d2d2d424547494e2043455254494[...]d2d0a), SigningAlgorithm=SHA256WITHRSA, TemplateArn=arn:aws:acm-pca:::template/EndEntityCertificate/V1, Validity=Validity(Value=365, Type=DAYS), IdempotencyToken=lgdfywimji)

Could it be a case-sensitivity issue?

Edited by: loopkin on Apr 3, 2020 5:26 PM

It was that, indeed, closing the question, all ok.

loopkin
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen