Closed noce2 closed 3 years ago
On investigation it appears the property https://github.com/math-dojo/user-account-service/blob/a50aed8d5621a9324fa2f8aaea8b6f40b8ac6f86/environments/pre-production.yml#L9 is actually a base64 encoding of the public certificate in DER format. This can be proved by running the following in a linux OS:
echo "${INSERT STRING HERE}" | base64 --decode > preprodcert.der
openssl x509 --inform DER --in ./preprodcert.der --pubkey --noout > pp.pub.key
The following commands succeed which indicates the provided string is not a public key, explaining why the above error is produced in the JVM.
The function in pp fails to start with the following message in the logs, full stack trace below. The error message implies that the supplied keyId is incorrect.
Full Trace