Java security exception all users

Как добавить список сайтов Java Exception для всех пользователей

Мне нужно использовать старый Java-апплет для определенного веб-сайта, но более новые версии Java не могут его запустить, так как он имеет самозаверяющий сертификат. Читая Руководство по развертыванию Oracle, мне нужно сделать собственное развертывание .JAR с надлежащей подписью сертификата (не самоподписанной), просто чтобы создать исключение, необходимое для запуска апплетов из одного домена.

Я обнаружил, что есть %userprofile%\appdata\LocalLow\Sun\Java\Deployment\security\exception.sites файл, очевидно, один для каждого пользователя. Там, по одному на строку, находится список доменов, которые я могу установить, чтобы исключить из НЕ выполняемых Когда я добавляю имя домена, пользователь получает один запрос, а затем разрешает этот домен для этого пользователя. Отлично.

Я знаю, что могу добавить этот файл в По умолчанию профиль пользователя, для любых новых создаваемых пользователей. К сожалению, я не думаю, что удаление профиля каждого пользователя из каждой системы — это правильный путь. Я могу передавать команды на компьютеры, но эти команды выполняются от моего пользователя — я не могу использовать% USERPROFILE% для этого. Я не хочу помещать его в свой сценарий входа в систему, так как я не хочу, чтобы файл становился большим для пользователей, которые постоянно входят и выходят из системы. Я также хочу только один домен добавленной к тому, что там есть, не стирая предпочтения пользователя, которые могут уже существовать.

Поскольку я не хочу стирать свои предпочтения, я подумал о том, чтобы сделать что-то вроде echo http://www.example.com >> %userprofile%\appdata\LocalLow\Sun\Java\Deployment\security\exception.sites , но это не сработает, так как будет продолжать добавлять в файл.

Читайте также:  PDF Create

Что я могу сделать, чтобы добавить список в правило исключений, но только если правило еще не существует?

Источник

Настроить список исключений Java 8 для всех пользователей на компьютере?

Мне нужно добавить несколько сайтов в список сайтов исключений Java в Java 8. Проблема в том, что настройки безопасности Java выполняются для каждого пользователя, а не для системы. Это означает, что когда я удаленно подключаюсь к компьютеру для изменения настроек, это происходит только для моей учетной записи, а не для других пользователей компьютера. Как изменить список сайтов исключений для всех пользователей на компьютере, не меняя его для каждого пользователя на компьютере?

2 ответа 2

Для получения дополнительной информации о том, как правильно настроить этот тип конфигурации, пожалуйста, прочитайте статью:http://www.adminarsenal.com/admin-arsenal-blog/managing-javas-control-panel-exception-site-list

Как изменить список сайтов исключений для всех пользователей на компьютере?

Измените файл exception.sites для каждого пользователя.

Расположение этого файла зависит от операционной системы.

%USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security\exception.sites 

В файле deploy.properties по умолчанию, расположенном в профиле пользователя, обычно используются панель управления и список сайтов исключений. Однако это только для каждого пользователя. Это не слишком полезно для системного администратора, которому нужно управлять несколькими компьютерами или поддерживать стандартные настройки для всего своего предприятия.

Вот тут и начинается создание файла deploy.config. Развертывание этого файла на ваших компьютерах позволяет вам ссылаться на ваш собственный файл deploy.properties и файл exception.sites.

В этой статье рассказывается, как создать и использовать файл deployment.config .

Рекомендации

  • Файл конфигурации развертывания. В этом разделе описываются системные и пользовательские свойства, которые можно настроить для настройки процесса развертывания.
  • Управление панелью управления Java и списком сайтов исключений

Источник

How to add Java Exception Site List for all users

I need to use an old Java applet for a certain website, but newer Java versions cannot run it, as it has a self-signed certificate. Reading on Oracle’s Deployment Guide, I need to make my own deployment .JAR, with a proper certificate signing (not self signed), just to create the exception I need to run applets from a single domain. I have found that there is a %userprofile%\appdata\LocalLow\Sun\Java\Deployment\security\exception.sites file, obviously one for each user. In there, one per line, is a list of domains I can set to exclude from NOT being executed. When I add the domain name, the user gets a single prompt, then it just allows that domain for that user. Great. I know I could add this file to the Default user profile, for any new users being created. Unfortunately, I do not think that removing every user’s profile from each of the systems is the right way to go. I can push commands to computers, but the commands run as my user — I can’t use %USERPROFILE% for this. I do not want to put it in my login script, as I do not want the file getting large for users who constantly log in and off of systems. I also only want the single domain added to whatever is there, without wiping out the user’s preferences that may already exist. Because I do not want to wipe out their preferences, I thought of doing something along the lines of echo http://www.example.com >> %userprofile%\appdata\LocalLow\Sun\Java\Deployment\security\exception.sites , but that won’t work, as it will keep adding to the file. What can I do to add the list to the Exceptions rule, but only if the rule does not exist already?

Читайте также:  Html php web application

( I am wondering why this was migrated from serverfault ). This is clearly meant for system administrators.

@Ramhound Wasn’t getting views, and can still be useful here. I requested the migration, and I will fix it up to be on topic here

Источник

Configure Java 8 Exceptions list for all users on a computer?

I need to add several sites to the Java exceptions site list in Java 8. The problem is that Java’s security settings are done on a per user basis and not on a per system basis. This means that when I remote into a computer to alter the setting it only does so for my account and not other users on the computer. How can I change the exception site list for all users on a computer without having to change it for every single user on the computer?

2 Answers 2

Option 3 If you create a java config file called deployment.config under the following path:

JAVA will consider the information added at that path as global, to ALL users of a single PC. This might help a lot in scenarios of deploying JAVA exception sites, for example, to all users of a network.

Actually, there are three files that are very importante on doing such config deploy:

For more information regarding how to set this type of configuration properly, please read the article: http://www.adminarsenal.com/admin-arsenal-blog/managing-javas-control-panel-exception-site-list

How can I change the exception site list for all users on a computer?

Modify the exception.sites file for each user.

The location of this file depends on the operating system.

On Windows the location is:

%USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security\exception.sites 

A default deployment.properties file, located in a User’s profile is where the control panel and exception site list are usually managed. However, this is only on a per-user basis. This is not too helpful to a sys admin needing to manage multiple computers or maintain standard settings across their enterprise.

That’s where creating a deployment.config file comes in. Deploying this file out to your computers allows you to reference your very own deployment.properties file and exception.sites file.

This article goes on to explain how to a create and use a deployment.config file.

Читайте также:  Php web site path

References

  • Deployment Configuration File — This topic describes system and user properties that can be set to configure the deployment process.
  • Manage Java’s Control Panel and Exception Site List

Источник

Оцените статью