Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64684

Unable to upload pkcs12 certificate in Credentials.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: _unsorted
    • Labels:
    • Environment:
      Jenkins with version 2.263.2 credential plugin-2.3.14 android-signing-2.2.5
    • Similar Issues:

      Description

      Not able to upload the pkcs12 file getting "Could not load keystore" while trying to add in the credentials. 

      I am using the Jenkins on local server.

      From the system logs getting :

      Credentials ID AndroidBuildKey: Could not load keystore from UploadedKeyStoreSource{uploadedKeystoreBytes=******}
      java.io.IOException: Short read of DER length
      at sun.security.util.DerInputStream.getLength(Unknown Source)
      at sun.security.util.DerValue.init(Unknown Source)
      at sun.security.util.DerValue.<init>(Unknown Source)
      at sun.security.util.DerValue.<init>(Unknown Source)
      at sun.security.pkcs12.PKCS12KeyStore.engineLoad(Unknown Source)
      at java.security.KeyStore.load(Unknown Source)
      at com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.getKeyStore(CertificateCredentialsImpl.java:155)
      at com.cloudbees.plugins.credentials.common.StandardCertificateCredentials$NameProvider.getName(StandardCertificateCredentials.java:89)
      at

        Attachments

        1. After_choose_file.png
          After_choose_file.png
          100 kB
        2. After_save_and_coming_back.png
          After_save_and_coming_back.png
          104 kB
        3. After_upload_certficate_click.png
          After_upload_certficate_click.png
          100 kB
        4. After_upload_click.png
          After_upload_click.png
          99 kB
        5. Credentials_screen.png
          Credentials_screen.png
          99 kB
        6. Screenshot (14).png
          Screenshot (14).png
          106 kB

          Activity

          munesh_android Munesh created issue -
          munesh_android Munesh made changes -
          Field Original Value New Value
          Description Not able to upload the pkcs12 file getting "Could not load keystore" From the system logs getting 

          Credentials ID AndroidBuildKey: Could not load keystore from UploadedKeyStoreSource\{uploadedKeystoreBytes=******}
          java.io.IOException: Short read of DER length
           at sun.security.util.DerInputStream.getLength(Unknown Source)
           at sun.security.util.DerValue.init(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.pkcs12.PKCS12KeyStore.engineLoad(Unknown Source)
           at java.security.KeyStore.load(Unknown Source)
           at com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.getKeyStore(CertificateCredentialsImpl.java:155)
           at com.cloudbees.plugins.credentials.common.StandardCertificateCredentials$NameProvider.getName(StandardCertificateCredentials.java:89)
           at
          Not able to upload the pkcs12 file getting "Could not load keystore" while trying to add in the credentials. 

          From the system logs getting 

          Credentials ID AndroidBuildKey: Could not load keystore from UploadedKeyStoreSource\{uploadedKeystoreBytes=******}
           java.io.IOException: Short read of DER length
           at sun.security.util.DerInputStream.getLength(Unknown Source)
           at sun.security.util.DerValue.init(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.pkcs12.PKCS12KeyStore.engineLoad(Unknown Source)
           at java.security.KeyStore.load(Unknown Source)
           at com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.getKeyStore(CertificateCredentialsImpl.java:155)
           at com.cloudbees.plugins.credentials.common.StandardCertificateCredentials$NameProvider.getName(StandardCertificateCredentials.java:89)
           at
          munesh_android Munesh made changes -
          Description Not able to upload the pkcs12 file getting "Could not load keystore" while trying to add in the credentials. 

          From the system logs getting 

          Credentials ID AndroidBuildKey: Could not load keystore from UploadedKeyStoreSource\{uploadedKeystoreBytes=******}
           java.io.IOException: Short read of DER length
           at sun.security.util.DerInputStream.getLength(Unknown Source)
           at sun.security.util.DerValue.init(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.pkcs12.PKCS12KeyStore.engineLoad(Unknown Source)
           at java.security.KeyStore.load(Unknown Source)
           at com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.getKeyStore(CertificateCredentialsImpl.java:155)
           at com.cloudbees.plugins.credentials.common.StandardCertificateCredentials$NameProvider.getName(StandardCertificateCredentials.java:89)
           at
          Not able to upload the pkcs12 file getting "Could not load keystore" while trying to add in the credentials. 

          From the system logs getting :

          Credentials ID AndroidBuildKey: Could not load keystore from UploadedKeyStoreSource\{uploadedKeystoreBytes=******}
           java.io.IOException: Short read of DER length
           at sun.security.util.DerInputStream.getLength(Unknown Source)
           at sun.security.util.DerValue.init(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.pkcs12.PKCS12KeyStore.engineLoad(Unknown Source)
           at java.security.KeyStore.load(Unknown Source)
           at com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.getKeyStore(CertificateCredentialsImpl.java:155)
           at com.cloudbees.plugins.credentials.common.StandardCertificateCredentials$NameProvider.getName(StandardCertificateCredentials.java:89)
           at
          munesh_android Munesh made changes -
          Description Not able to upload the pkcs12 file getting "Could not load keystore" while trying to add in the credentials. 

          From the system logs getting :

          Credentials ID AndroidBuildKey: Could not load keystore from UploadedKeyStoreSource\{uploadedKeystoreBytes=******}
           java.io.IOException: Short read of DER length
           at sun.security.util.DerInputStream.getLength(Unknown Source)
           at sun.security.util.DerValue.init(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.pkcs12.PKCS12KeyStore.engineLoad(Unknown Source)
           at java.security.KeyStore.load(Unknown Source)
           at com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.getKeyStore(CertificateCredentialsImpl.java:155)
           at com.cloudbees.plugins.credentials.common.StandardCertificateCredentials$NameProvider.getName(StandardCertificateCredentials.java:89)
           at
          Not able to upload the pkcs12 file getting "Could not load keystore" while trying to add in the credentials. 

          I am using the Jenkins on local server.

          From the system logs getting :

          Credentials ID AndroidBuildKey: Could not load keystore from UploadedKeyStoreSource\{uploadedKeystoreBytes=******}
           java.io.IOException: Short read of DER length
           at sun.security.util.DerInputStream.getLength(Unknown Source)
           at sun.security.util.DerValue.init(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.util.DerValue.<init>(Unknown Source)
           at sun.security.pkcs12.PKCS12KeyStore.engineLoad(Unknown Source)
           at java.security.KeyStore.load(Unknown Source)
           at com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.getKeyStore(CertificateCredentialsImpl.java:155)
           at com.cloudbees.plugins.credentials.common.StandardCertificateCredentials$NameProvider.getName(StandardCertificateCredentials.java:89)
           at
          munesh_android Munesh made changes -
          Assignee jenkins admin [ administrators ]
          munesh_android Munesh made changes -
          Attachment Credentials_screen.png [ 53896 ]
          munesh_android Munesh made changes -
          Attachment After_upload_certficate_click.png [ 53897 ]
          munesh_android Munesh made changes -
          Attachment After_choose_file.png [ 53898 ]
          munesh_android Munesh made changes -
          Attachment After_save_and_coming_back.png [ 53899 ]
          munesh_android Munesh made changes -
          Attachment After_save_and_coming_back.png [ 53899 ]
          munesh_android Munesh made changes -
          Attachment After_upload_click.png [ 53900 ]
          munesh_android Munesh made changes -
          Attachment After_save_and_coming_back.png [ 53901 ]

            People

            Assignee:
            administrators jenkins admin
            Reporter:
            munesh_android Munesh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: