Jump to content

Upgrade certificates?


aaronw

Recommended Posts

Posted

I am having a lot of problems related to the supplied certificates being too weak for TLS. When trying to create a self-signed certificate with a key strength of 2048 bits I get the following error:

ert Gen: Retry 0 of 5
java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:688)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:585)
        at java.base/sun.security.util.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:111)
        at java.base/java.security.KeyStore.setKeyEntry(KeyStore.java:1174)
        at com.universaldevices.dashboard.config.CertManagementPanel.generateSelfSignedCertificate(Unknown Source)
        at com.universaldevices.dashboard.config.CertManagementPanel.access$3(Unknown Source)
        at com.universaldevices.dashboard.config.CertManagementPanel$4$1.run(Unknown Source)
Caused by: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:926)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:625)
        ... 6 more
Caused by: java.io.IOException: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.getPBEAlgorithmParameters(PKCS12KeyStore.java:807)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:896)
        ... 7 more
Caused by: java.security.NoSuchAlgorithmException: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
        at java.base/java.security.Security.getImpl(Security.java:730)
        at java.base/java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:158)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.getPBEAlgorithmParameters(PKCS12KeyStore.java:803)
        ... 8 more
Cert Gen: Retry 1 of 5
java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:688)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:585)
        at java.base/sun.security.util.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:111)
        at java.base/java.security.KeyStore.setKeyEntry(KeyStore.java:1174)
        at com.universaldevices.dashboard.config.CertManagementPanel.generateSelfSignedCertificate(Unknown Source)
        at com.universaldevices.dashboard.config.CertManagementPanel.access$3(Unknown Source)
        at com.universaldevices.dashboard.config.CertManagementPanel$4$1.run(Unknown Source)
Caused by: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:926)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:625)
        ... 6 more
Caused by: java.io.IOException: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.getPBEAlgorithmParameters(PKCS12KeyStore.java:807)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:896)
        ... 7 more
Caused by: java.security.NoSuchAlgorithmException: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
        at java.base/java.security.Security.getImpl(Security.java:730)
        at java.base/java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:158)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.getPBEAlgorithmParameters(PKCS12KeyStore.java:803)
        ... 8 more
Cert Gen: Retry 2 of 5
java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:688)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:585)
        at java.base/sun.security.util.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:111)
        at java.base/java.security.KeyStore.setKeyEntry(KeyStore.java:1174)
        at com.universaldevices.dashboard.config.CertManagementPanel.generateSelfSignedCertificate(Unknown Source)
        at com.universaldevices.dashboard.config.CertManagementPanel.access$3(Unknown Source)
        at com.universaldevices.dashboard.config.CertManagementPanel$4$1.run(Unknown Source)
Caused by: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:926)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:625)
        ... 6 more
Caused by: java.io.IOException: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.getPBEAlgorithmParameters(PKCS12KeyStore.java:807)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:896)
        ... 7 more
Caused by: java.security.NoSuchAlgorithmException: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
        at java.base/java.security.Security.getImpl(Security.java:730)
        at java.base/java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:158)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.getPBEAlgorithmParameters(PKCS12KeyStore.java:803)
        ... 8 more
Cert Gen: Retry 3 of 5
java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:688)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:585)
        at java.base/sun.security.util.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:111)
        at java.base/java.security.KeyStore.setKeyEntry(KeyStore.java:1174)
        at com.universaldevices.dashboard.config.CertManagementPanel.generateSelfSignedCertificate(Unknown Source)
        at com.universaldevices.dashboard.config.CertManagementPanel.access$3(Unknown Source)
        at com.universaldevices.dashboard.config.CertManagementPanel$4$1.run(Unknown Source)
Caused by: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:926)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:625)
        ... 6 more
Caused by: java.io.IOException: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.getPBEAlgorithmParameters(PKCS12KeyStore.java:807)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:896)
        ... 7 more
Caused by: java.security.NoSuchAlgorithmException: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
        at java.base/java.security.Security.getImpl(Security.java:730)
        at java.base/java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:158)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.getPBEAlgorithmParameters(PKCS12KeyStore.java:803)
        ... 8 more
Cert Gen: Retry 4 of 5
java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:688)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:585)
        at java.base/sun.security.util.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:111)
        at java.base/java.security.KeyStore.setKeyEntry(KeyStore.java:1174)
        at com.universaldevices.dashboard.config.CertManagementPanel.generateSelfSignedCertificate(Unknown Source)
        at com.universaldevices.dashboard.config.CertManagementPanel.access$3(Unknown Source)
        at com.universaldevices.dashboard.config.CertManagementPanel$4$1.run(Unknown Source)
Caused by: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:926)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:625)
        ... 6 more
Caused by: java.io.IOException: getPBEAlgorithmParameters failed: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.pkcs12.PKCS12KeyStore.getPBEAlgorithmParameters(PKCS12KeyStore.java:807)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:896)
        ... 7 more
Caused by: java.security.NoSuchAlgorithmException: PBEWithHmacSHA256AndAES_256 AlgorithmParameters not available
        at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
        at java.base/java.security.Security.getImpl(Security.java:730)
        at java.base/java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:158)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.getPBEAlgorithmParameters(PKCS12KeyStore.java:803)
        ... 8 more

 

I have firmware 5.3.4 installed.

Guest
This topic is now closed to further replies.

×
×
  • Create New...