顯示包含「Java」標籤的文章。顯示所有文章
顯示包含「Java」標籤的文章。顯示所有文章

2020-10-16

Java Keystore - keytool commands

 1.  List Trusted cacerts

    keytool -list -v -keystore $JAVA_HOME/jre/lib/security/cacerts


2. Import New cert into keystore (e.g. Amazon)

keytool -import -trustcacerts -file [filename] -alias [alias] -keystore $JAVA_HOME/jre/lib/security/cacerts 

->

keytool -import -trustcacerts -file AmazonRootCA1.cer -alias AmazonRootCA1 -keystore $JAVA_HOME/jre/lib/security/cacerts

3. Delete cert from keystore

keytool -delete -alias [alias] -keystore $JAVA_HOME/jre/lib/security/cacerts 

Ref: https://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html

2014-07-10

[Solved] Access denied ("java.util.PropertyPermission" "user.timezone" "write")

解決 Access denied ("java.util.PropertyPermission" "user.timezone" "write") 問題

Edit $JAVA_HOME\lib\security\java.policy (Both Program File and Program File x86)


grant {
...  

    permission java.util.PropertyPermission "user.timezone", "write";
};

save as java.policy and then replace the original. 

Restart java.exe process

Review Who is Connected to Windows Shared Folder

  1. Open Computer Management Console     Windows Key + R -> compmgmt.msc      2. Expand System Tools -> Shared Folder -> Sessions ...