java.security.cert.CertificateParsingException: invalid DER-encoded certificate data

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check your certificates, you need a X.509 certificate pair from the AWS website, you can't make it in the management console. It's in account -> Credentials

Solutions on the web

via Atlassian JIRA by Matthew Hunter, 1 year ago
invalid DER-encoded certificate data
via Atlassian JIRA by Matthew Hunter, 1 year ago
invalid DER-encoded certificate data
java.security.cert.CertificateParsingException: invalid DER-encoded certificate data
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1703)
at sun.security.x509.X509CertImpl.(X509CertImpl.java:301)
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:104)
at com.amazon.aes.webservices.client.CryptoProxy.getCertByName(CryptoProxy.java:116)
at com.amazon.aes.webservices.client.CryptoProxy.getCertificates(CryptoProxy.java:74)
at com.amazon.aes.webservices.client.Jec2Impl.signRequest(Jec2Impl.java:301)
at com.amazon.aes.webservices.client.Jec2Impl.access$000(Jec2Impl.java:97)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.