Comment réinitialiser le TrustStore dans AEM ?
Pour corriger les erreurs TrustStore, vous devez recréer TrustStore.
Description description
Environnement
Experience Manager
Problème/Sy mptoms
Impossible de récupérer les erreurs TrustStore telles qu’elles apparaissent dans le journal.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
04.04.2017 11:39:30.150 *ERROR* [ 192.150.9.201 [ 1491320370146] GET
/libs/granite/security/truststore
.json HTTP
/1
.1] com.adobe.granite.security.user.internal.servlets.KeyStoreManagingServlet Unable to retrieve the truststore's aliases.
>
>
java.lang.SecurityException: com.adobe.granite.crypto.CryptoException: Cannot convert byte data
>
>
at com.adobe.granite.keystore.internal.KeyStoreServiceImpl.extractStorePassword(KeyStoreServiceImpl.java:609)
>
>
at com.adobe.granite.keystore.internal.KeyStoreServiceImpl.internalGetTrustStore(KeyStoreServiceImpl.java:462)
>
>
at com.adobe.granite.keystore.internal.KeyStoreServiceImpl.getTrustStore(KeyStoreServiceImpl.java:154)
>
>
at com.adobe.granite.security.user.internal.servlets.KeyStoreManagingServlet.doGet(KeyStoreManagingServlet.java:154)
>
>
at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:269)
>
>
...
>
>
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
>
>
at java.lang.Thread.run(Thread.java:745)
>
>
Caused by: com.adobe.granite.crypto.CryptoException: Cannot convert byte data
>
>
at com.adobe.granite.crypto.internal.CryptoSupportImpl.unprotect(CryptoSupportImpl.java:160)
>
>
at com.adobe.granite.keystore.internal.KeyStoreServiceImpl.extractStorePassword(KeyStoreServiceImpl.java:601)
>
>
... 110 common frames omitted
>
>
Caused by: com.adobe.granite.crypto.CryptoException: Failed decrypting cipher text
>
>
at com.adobe.granite.crypto.internal.CryptoSupportImpl.decrypt(CryptoSupportImpl.java:96)
>
>
at com.adobe.granite.crypto.internal.CryptoSupportImpl.unprotect(CryptoSupportImpl.java:157)
>
>
... 111 common frames omitted
>
>
Caused by: com.rsa.jsafe.JSAFE_PaddingException: Invalid padding.
>
>
at com.rsa.jsafe.JSAFE_SymmetricCipher.decryptFinal(Unknown Source)
>
>
at com.adobe.granite.crypto.internal.jsafe.JSafeCryptoSupport.getPlainText(JSafeCryptoSupport.java:325)
>
>
at com.adobe.granite.crypto.internal.jsafe.JSafeCryptoSupport.getPlainText(JSafeCryptoSupport.java:307)
>
>
at com.adobe.granite.crypto.internal.CryptoSupportImpl.decrypt(CryptoSupportImpl.java:94)
>
>
... 112 common frames omitted
Résolution resolution
Suivez les étapes ci-dessous :
- Ouvrez CRX/DE en tant qu’utilisateur administrateur.
- Supprimez le noeud /etc/truststore/truststore.p12.
- Cliquez sur Tout enregistrer.
- Recréez le TrustStore comme indiqué ci-dessous :
AEM 6.5
Cause
Corruption dans le TrustStore.
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f