Created
September 11, 2018 13:35
-
-
Save Crydust/16987ed289383ee2c4c4e5158180dfa4 to your computer and use it in GitHub Desktop.
certificates in java cacerts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM install a certificate | |
REM ======================= | |
set KEYTOOL=C:\Workspace\opt\Java\jdk1.8.0_162\bin\keytool | |
set FILE=D:\home\kristof\Downloads\wildca.cer | |
set KEYSTORE=C:\Workspace\opt\Java\jdk1.8.0_162\jre\lib\security\cacerts | |
set ALIAS=certinga.wildca.intermediate | |
%KEYTOOL% -import -trustcacerts ^ | |
-alias %ALIAS% ^ | |
-file %FILE% ^ | |
-keystore %KEYSTORE% | |
REM the password is: "changeit" | |
REM type "yes" when asked "Trust this certificate?" | |
REM delete a certificate | |
REM ======================= | |
keytool -delete -alias %ALIAS% -keystore %KEYSTORE% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment