Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Java Security level

Java 7 update 51 has java security level which is set to HIGH by default. I want to change it to medium by using registry or by adding any files. I observed that manually changing security level to medium from high creates registry

[HKEY_CURRENT_USER\Software\JavaSoft\DeploymentProperties]
"deployment.security.level"="MEDIUM"

But if i manually create the above registry then java security setting does not change and created registry gets deleted. So I think there must be other files which does it. So how can I change java security setting? I have seen some articles and forum links but didn't get what I wanted. Also this is not to set security level for my customers and it is for my office where number of employees need to change this setting(all are windows OS pc's) and it will be easy if there is automation like code or a registry entries.

like image 740
IT researcher Avatar asked Jan 20 '14 07:01

IT researcher


People also ask

How do I fix Java blocked by security settings?

As a workaround you can use the Exception Site list feature to run the applications blocked by security settings. Adding the URL of the blocked application to the Exception Site list allows it to run with some warnings.

Where are Java security settings stored?

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


2 Answers

To change the security settings you need to modify the deployment.config of java (not the registry). It is located at

Windows Directory\Sun\Java\Deployment\deployment.config // system level

or

User Application Data Folder\LocalLow\Sun\Java\Deployment\deployment.properties // user level

You need to add the entry:

deployment.security.level=MEDIUM

The documentation on this can be found here: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/properties.html

Hope this helps.

like image 176
scigor Avatar answered Sep 30 '22 05:09

scigor


Thanks for your help The proper path is

C:\Users\Your_Account_Name\AppData\LocalLow\Sun\Java\Deployment\deployment.properties

enter at the last line

deployment.security.level=MEDIUM

restart the browser and good to go

like image 30
Dhiraj Himani Avatar answered Sep 30 '22 07:09

Dhiraj Himani