Remove alias from cacerts file [collection of trusted certificate authority (CA) certificates] - jdk 11
I am using linux and I want to remove reference of the certificate e.g alias from cacerts
file, which is a collection of trusted certificate authority (CA) certificates. But I don't remember the name of the alias.
openjdk version "11.0.12" 2021-07-20 LTS
OpenJDK Runtime Environment Corretto-11.0.12.7.1 (build 11.0.12+7-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.12.7.1 (build 11.0.12+7-LTS, mixed mode)
When I list the entries form cacerts with keytool, it shows below type of output.
keytool -list -keystore /etc/pki/ca-trust/extracted/java/ca开发者_开发百科certs -storepass changeit
Output
verisignclass3publicprimarycertificationauthority-g3, Apr 2, 2020, trustedCertEntry, Certificate fingerprint (SHA-256): EB:04:CF:5E:B1:F3:9A:FA:76:2F:2B:B1:20:F2:96:CB:A5:20:C1:B9:7D:B1:58:95:65:B8:1C:B9:A1:7B:72:44 verisignclass3publicprimarycertificationauthority-g4, Apr 2, 2020, trustedCertEntry, Certificate fingerprint (SHA-256): 69:DD:D7:EA:90:BB:57:C9:3E:13:5D:C8:5E:A6:FC:D5:48:0B:60:32:39:BD:C4:54:FC:75:8B:2A:26:CF:7F:79 verisignclass3publicprimarycertificationauthority-g5, Apr 2, 2020, trustedCertEntry, Certificate fingerprint (SHA-256): 9A:CF:AB:7E:43:C8:D8:80:D0:6B:26:2A:94:DE:EE:E4:B4:65:99:89:C3:D0:CA:F1:9B:AF:64:05:E4:1A:B7:DF verisignuniversalrootcertificationauthority, Apr 2, 2020, trustedCertEntry, Certificate fingerprint (SHA-256): 23:99:56:11:27:A5:71:25:DE:8C:EF:EA:61:0D:DF:2F:A0:78:B5:C8:06:7F:4E:82:82:90:BF:B8:60:E8:4B:3C xrampglobalcaroot, Apr 2, 2020, trustedCertEntry, Certificate fingerprint (SHA-256): CE:CD:DC:90:50:99:D8:DA:DF:C5:B1:D2:09:B7:37:CB:E2:C1:8C:FB:2C:10:C0:FF:0B:CF:0D:32:86:FC:1A:A2
My question is that how can I remove alias from cacerts
file, when I don't remember the alias name. Is there any other pointer, using which I know which entry to delete from cacerts
.
精彩评论