尝试将CA Cert导入我的Java 6信任库,并遇到此错误:
./keytool -v -import -trustcacerts -alias Rapidssl -file /Users/spurr/Desktop/rapidssl.cer -keystore /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts Enter keystore password: Certificate was added to keystore [Storing /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts] keytool error: java.io.FileNotFoundException: /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts (Operation not permitted) java.io.FileNotFoundException: /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts (Operation not permitted) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:194) at java.io.FileOutputStream. (FileOutputStream.java:84) at sun.security.tools.KeyTool.doCommands(KeyTool.java:902) at sun.security.tools.KeyTool.run(KeyTool.java:172) at sun.security.tools.KeyTool.main(KeyTool.java:166)
我也以root用户身份运行该命令,因此我认为我可以访问该cacerts密钥库位置。使用Java 6。