Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the JRE lib/security directory on Mac OS X?

I need to generate a cert and can't find this directory. Thanks!

like image 903
bethesdaboys Avatar asked Dec 07 '11 00:12

bethesdaboys


People also ask

Where is the JRE folder on Mac?

In macOS, the JRE installation path is /Library/Internet Plug-Ins/JavaAppletPlugin. plugin/Contents/Home/ . The root directory of the JRE software installation. This directory contains README, and other JRE folders.

Where is Java security folder?

Navigate to the security folder, /<JRE>/lib/security. The java. security file is listed in the security folder.

Where can I find Cacert path?

A certificates file named cacerts resides in the security properties directory, java. home \lib\security, where java. home is the runtime environment directory (the jre directory in the SDK or the top-level directory of the Java™ 2 Runtime Environment).


2 Answers

The location I've found on MacOS Mojave with jre 1.8.0 is:

/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security

I was not trying to do any Java certificate-store stuff but needed to tweak some security settings for an applet.

Also, can you believe it's 2019 and we're still messing with this crap? ;)

like image 129
Pete Kowalsky Avatar answered Sep 20 '22 05:09

Pete Kowalsky


On Mavericks (OS X 10.10) with Oracle Java 8, it appears to be:

/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/security

like image 29
Lorin Hochstein Avatar answered Sep 18 '22 05:09

Lorin Hochstein