在macOS中为Java安装证书

时间:2019-01-12 13:48:52

标签: java macos

我想为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”

0 个答案:

没有答案