Arquillian Embedded Glassfish Certificate Expired

前端 未结 3 543
离开以前
离开以前 2021-01-01 02:40

On Aug 14th, the gtecybertrust5ca certifcate used by Glassfish expired causing my Arquillian tests to print errors.

This problem is similar to this one: Certificate

3条回答
  •  离开以前
    2021-01-01 02:57

    I fixed the issue following the steps:

    1. Find precise date of expiration in logs of your application (in my case it was Aug 15 2013)

    2. Extract files from glassfish-.jar into folder glassfish-

    3. In glassfish-* find a folder config. It contains needed cacerts.jks

    4. Using java keytool I list all certificates using the answer I found here

    list all certificates from cacerts.jks, the keytool from java can do that. I copied the cacerts.jks file in the keytool folder but is optional if keytool is working well : C:\glassfish3\jdk7\bin>keytool -list -v -keystore cacerts.jks -storepass changeit > listaCertificados.txt

    1. Open you listaCertificados.txt and find names of certificates by date you found at first step in your application logs
    2. again

    i deleted the gtecybertrust5ca (use the name of certificates that expired in ur case) certified that expired in august 2013. The command is: keytool -delete -alias gtecybertrust5ca -keystore cacerts.jks -storepass changeit

    1. the last: updating glassfish-*.jar with changed config folder (7-zip didn't help me)

    jar uf glassfish-* config

提交回复
热议问题