![]() C:\Windows\system32>"C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot\bin\keytool" -keystore "C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot\lib\security\cacerts" -importcert -alias sds -file C:\Users\SDS\SDS.crt It's run on Windows 10 cmd with administrative privilege. I used AdoptOpenJDK but it gave me the same results. One more thing: ask your administrator - maybe he has deliberately changed the password for the cacerts file. ![]() Then when you run a Java program, configure it to use your custom cacerts file instead of the default cacerts file: java =path/to/custom/cacerts In your case, you can copy the cacerts file from the ZIP file and move it to your home directory and add your corporate certificates to that, as you don't know the password for D:\java8\jre\lib\security\cacerts. Instead, keep the original but create a copy of it in a custom folder and add your corporate certificates to that. You can follow a similar procedure for validating the OpenJDK 11's cacerts file.Īlso: you don't need to import the custom certificates into the the original D:\java8\jre\lib\security\cacerts file. If they are not identical, it is possible that your D:\java8\jre\lib\security\cacerts file has been modified. fc) compare the contents of the cacerts file from the downloaded archive to your local version. OpenJDK8U-jre_圆4_windows_hotspot_8u212b04.zip).Įxtract the cacerts file ( lib/security/cacerts) and using a binary diff tool (e.g. If it continues to give you the same error, find the exact version of your Java 8 installation and download the corresponding ZIP archive from AdoptOpenJDK (e.g. ![]() ![]() Keytool -list -keystore cacerts -storepass changeit ![]() For OpenJDK 8, first double check the password: cd D:\java8\jre\lib\security ![]()
0 Comments
Leave a Reply. |