我想为Java安装证书。命令如下:
keytool -import -v -trustcacerts -alias X-CA -file ~/x.test.cer -keystore /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/cacerts
cacert的路径具有指向另一个不存在的目录的符号链接。
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/cacerts -> /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts
/System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts
目录不存在,我无法cd
进入它。
macos high Sierra 10.13.6
Java版本“ 1.6.0_65”