Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add site list to Java Security without using the UI?

Tags:

java

security

There is an exception list on java security tab like the picture below.java add site list

I want to add websites to this list using the command line. Is it possible to do that?

like image 347
Anonymous Avatar asked Dec 08 '22 07:12

Anonymous


2 Answers

The Oracle documentation tells us:

The location of the exception site list is set in the deployment.user.security.exception.sites property. The default location is <deployment.user.home>/security/exception.sites.

So you could add URLs to that file pretty easily on the command line.

like image 110
Luke Peterson Avatar answered Dec 10 '22 19:12

Luke Peterson


Just checked, on Java 8.111 and Windows 7 Corporate it can be found at

c:\Users\%username%\AppData\LocalLow\Sun\Java\Deployment\security\exception.sites

But I suppose that this file (as well as the whole directory chain) is not created by default. So may be you should first add it by hand, then search for the exact file location.

like image 31
Boulder Avatar answered Dec 10 '22 20:12

Boulder