How to preserve the CAcerts keystore on Mac across updates?

前端 未结 3 1864
失恋的感觉
失恋的感觉 2021-02-06 09:18

Mac OS X has the CA keystore in /System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts. This keystore seems to be overwritten by every Java update, which is very

3条回答
  •  青春惊慌失措
    2021-02-06 09:30

    [ This is outdated info - see the answer below for 10.6+ ]

    /System/Library/Frameworks/JavaVM.framework/Home/ is a symlink to Versions/CurrentJDK/Home within JavaVM.framework. Obviously this will change with a new Version. Use the full path (e.g. /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home) and it won't change across updates.

提交回复
热议问题