我有一个 Java EE 7、SE 8 项目(glassfish 4.1、JSF、JPA、EJB)(Eclipse Neon)。它曾经正常工作。现在,当我启动 glassfish 时,它告诉我证书已过期。2018-10-17T19:35:58.516+0000|Info: visiting unvisited references2018-10-17T19:35:59.920+0000|Severe: The SSL certificate has expired: [[ Version: V3 Subject: OU=Equifax Secure Certificate Authority, O=Equifax, C=US Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5 Key: Sun RSA public key, 1024 bits modulus: 135786214035069526348186531221551781468391756233528066061569654028671100866720352830303278016129003918213826297308054231261658522889438712013757624116391437358730449661353175673177742307421061340003741057138887918110217006515773038453829253517076741780039735595086881329494037450587568122088113584549069375417 public exponent: 65537 Validity: [From: Sat Aug 22 16:41:51 UTC 1998, To: Wed Aug 22 16:41:51 UTC 2018] Issuer: OU=Equifax Secure Certificate Authority, O=Equifax, C=US SerialNumber: [ 35def4cf]Certificate Extensions: 7[1]: ObjectId: 1.2.840.113533.7.65.0 Criticality=falseExtension unknown: DER encoded OCTET string =0000: 04 0D 30 0B 1B 05 56 33 2E 30 63 03 02 06 C0 ..0...V3.0c....[2]: ObjectId: 2.5.29.35 Criticality=falseAuthorityKeyIdentifier [KeyIdentifier [0000: 48 E6 68 F9 2B D2 B2 95 D7 47 D8 23 20 10 4F 33 H.h.+....G.# .O30010: 98 90 9F D4 ....]][3]: ObjectId: 2.5.29.19 Criticality=falseBasicConstraints:[ CA:true PathLen:2147483647][4]: ObjectId: 2.5.29.31 Criticality=falseCRLDistributionPoints [ [DistributionPoint: [CN=CRL1, OU=Equifax Secure Certificate Authority, O=Equifax, C=US]现在 glassfish 仍然启动并正常工作,项目也是如此。问题是在上面最后一行之后,控制台中没有显示任何内容。但是,当我打开日志文件 server.log 时,每个文件都被写入那里。我注意到的是打印这两个字符会导致问题]]那么问题出在哪里呢?我该如何解决?
1 回答
慕森卡
TA贡献1806条经验 获得超8个赞
我通过去修复它
D:\Dev\Servers\glassfish4\glassfish\domains\domain1\config
列出证书使用
keytool -list -keystore cacerts.jks -v
获取证书的别名
然后删除使用
keytool -delete -alias equifaxsecureca -keystore cacerts.jks
添加回答
举报
0/150
提交
取消