java.security.cert.CertificateParsingException

invalid DER-encoded certificate data

Samebug tips1

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web60

  • via Atlassian JIRA by Matthew Hunter, 10 months ago
    invalid DER-encoded certificate data
  • via Atlassian JIRA by Matthew Hunter, 1 year ago
    invalid DER-encoded certificate data
  • via Stack Overflow by Wave
    , 1 year ago
    invalid DER-encoded certificate data
  • Stack trace

    • java.security.cert.CertificateParsingException: invalid DER-encoded certificate data at com.amazon.aes.webservices.client.CryptoProxy.getCertificates(CryptoProxy.java:76) at org.apache.ws.security.message.WSSecSignature.prepare(WSSecSignature.java:291) at com.amazon.aes.webservices.client.Jec2Impl.signRequest(Jec2Impl.java:301) at com.amazon.aes.webservices.client.Jec2Impl.access$000(Jec2Impl.java:97) at com.amazon.aes.webservices.client.Jec2Impl$1.invoke(Jec2Impl.java:204) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) Caused by: java.security.cert.CertificateParsingException: invalid DER-encoded certificate data at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1703) at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:301) at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:104) at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:305) at com.amazon.aes.webservices.client.CryptoProxy.getCertByName(CryptoProxy.java:116) at com.amazon.aes.webservices.client.CryptoProxy.getCertificates(CryptoProxy.java:74) ... 7 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 3 months ago
    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago