java.io.IOException

insufficient data

Samebug tips2

If you are using maven you'd like to exclude your binaries from filtering process.

Java Keytool doesn't accept PEM files, you need to convert it to Der before: "openssl x509 -outform der -in certificate.pem -out certificate.der" and to import it to the keystore "keytool -import -alias your-alias -keystore cacerts -file certificate.der"

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

Solutions on the web1848

  • insufficient data
  • insufficient data
  • Stack trace

    • java.io.IOException: insufficient data at sun.security.util.DerInputBuffer.truncate(DerInputBuffer.java:125) at sun.security.util.DerInputStream.subStream(DerInputStream.java:136) at sun.security.util.DerInputStream.readVector(DerInputStream.java:381) at sun.security.util.DerInputStream.getSequence(DerInputStream.java:298) at sun.security.pkcs.ContentInfo.<init>(ContentInfo.java:132) at sun.security.pkcs.ContentInfo.<init>(ContentInfo.java:109) at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1247) at java.security.KeyStore.load(KeyStore.java:1214)

    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
    Once, 6 months ago
    2 times, 7 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    33 more bugmates