How to avoid java Security Information popup? - java

Problem - Java security information popup appears when applet based application loads in the browser.
When I check "Always trust content from the publisher" and click run, the application runs and certificate is added to java user trusted certificates list.
When I run the application the next time, the Security Information popup does not appear.
My questions are -
How can I avoid the security information popup for other users logging into the same computer?
It is a shared desktop used by multiple users and every time a new user logs in and uses the applet based application, the security information popup appears.
How can the certificate be added to a centralized location (perhaps system trustsore?) and not to user profiles so that whenever a new user logs into the computer and uses the application, the security warning does not appear?
What I've tried until now:
Added the client certificate to java keystore on the computer. After
this I logged into the application again, the popup still appeared.
Added client certificate to jre\lib\security\cacerts - it didn't help either.

Related

"Do you want to run this application" JNLP dialog - conditions for the dialog to be shown again

A user is running a JNLP app which is launched from the browser. The *.jar file launched by the JNLP is signed by a Certificate issued by a trusted CA.
For the first time the jar file is launched, the user is asked a question whether he trusts the signer (not the CA - the CA is already trusted).
If the user says yes, signer's certificate gets added to the trust store.
Question is: what are the conditions for the same dialog to be shown again?
Has the *.jar file called by the JNLP changed?
Has the JNLP itself changed?
Has the URL of the JNLP changed?
Which of these (or something else?) will trigger the dialog to be shown even after user has checked the "Do not show this again" checkbox initially?
I wasn't able to find a lot of information online about this subject, but I found, from this page of the Java Doc, that once the user accepts the certificate shown in the dialog, the application will be automatically granted permission
until the certificate expires or is removed from the trusted key store.
I couldn't find any more official text from the Java Doc that stated more about conditions that could trigger the same dialog again, but at this site, there was this statement:
... if the JNLP changes, then it's considered another application and therefore you
see the Security Warning again.
which could mean that if the JNLP changes, then the dialog would be triggered again.
Also, if you wanted to restore the security prompts that you have allowed to run automatically, you could follow the steps shown here.
Hopefully this can help in some way and is related to what you're asking for.

The URI is not accessible when creating remote URL connection - Oracle MAF

We have recently needed to change our SSL certificate on our server. Our consuming application has suddenly stopped working. I had presumed this was to do with Java's cacerts, and modified the program to import the new certificate to each client, the problem was not resolved.
When the application attempts to load the remote view (shown below) on the server, it simply loads a white page. I have tried loading the page through http:// and it seems to function, however the rest of the application (including the API) requires https, and subsequent calls to the API fail (images loaded through https are showing as broken within the app).
The website is functional, and when I access URL's being provided to the app, through my desktop browser they load without issue. The app is also functional when I run it in Debug mode, these issues only occur when I use the "Run" build mode.
I have tried creating a blank MAF application, hoping it was some caching issue, however this new app also cannot load the remote URI. I have done a clean build and have tested other remote URI's (they work). I feel as if there is an issue with Java somehow not accepting the new certificate. The first time I tried to load the website within Eclipse's browser, an error displayed along the lines of "certificate revocation information". I didn't pay much attention to this error and it provided the option to install the new certificate, after which the page loaded within eclipse's browser.
In Jdeveloper there is an option of Disabling the Application Transport Security as shown in the image.
Could you try disabling in your eclipse too, Kindly refer this doc https://wiki.eclipse.org/Jetty/Howto/Configure_SSL, this might do a little help :)
The issue seems to be due to the changed SSL certificate on your server.
Short answer:
There was no chain installed, I installed the provided ca-bundle file and updated the httpd.conf file to reflect the chain location and the app now works.
Long answer:
When our server dev installed the new certificate, he neglected to install the ca-bundle (certificate chain) provided by the CA. The site was working in a browser, I can only assume, because it has a more complete list of trusted CA's built in. My best guess is that MAF requires the chain to be installed and was failing some security test, or the chrome webview it uses did not have this CA on the trusted list.

Authentication required pop-up when loading JNLP for internal website

Recently we started to upgrade our clients from Java 6u31 to 8u121.
Here we see an impact on our internal web application written in Java.
Client(s) connects to a web-server which has the JNLP and JARs locally.
However now with the new Java 8u121 we get a pop-up from java : Authentication required.
We can click on cancel and the Java app will load but this is not acceptable for our users.
Is this a Java problem or a Proxy problem?
We started to do a trace with wire-shark to see what happens when the Java pop-up "authentication required" occurs. Here we could see that our proxy server blocks a global-sign site to validate a certificate. Here we made an exception for that site. Now we have no issue anymore and the pop-up is not occurring anymore.
You can prevent that authentication window by setting the property deployment.security.authenticator value to false in the deployment.properties
Normally Plug-in and Web Start install an Authenticator to handle
communication with Authenticating web pages or Authenticating proxies.
This is the default behavior (true). This option can be used to turn
the normal behavior off if, for example, an application communicates
directly with an authenticating web page and needs to install its own
Authenticator.
Location of the deployment.properties
in Windows - \LocalLow\Sun\Java\Deployment\deployment.properties
in Linux - ${user.home}/.java/deployment/deployment.properties
in OS X - ~/Library/Application Support/Oracle/Java/Deployment/deployment.properties

Java blocks my (signed .jar) applet due to security reasons. How do i fix this?

First i would like to say that the .jar does not contain any malicious software or code. It's not harmfull, everything is fine. I signed my .jar and I'm trying to load it into my website using this code:
<applet width="765" height="503" code="Loader.java" archive="HolyDivinity718V1.1.jar" name="Holy Divinity"></applet></p>
But when i run it i get this error:
Application Blocked. Click for details. Your security settings have blocked a self-signed application from running.
The client is a webclient of a game that I'm running. What's the reason that it's getting blocked?
Since recently all self signed java applets are blocked. You can do one of the following things:
Buy and sign your applet with an official certificate
Decrease your security slider to medium
Use the exception site list
Sign your app with a self signed certificate and add your certificate to the java trust store

IE certificate issue in Weblogic server application

Deployed the project in weblogic server 10.3 in local. The application works fine in Firefox but in IE says error
There is a problem with this website's security certificate
after click the login.
Used J_Security_Check for login.
even clicked continue this web site also not help
I am using the default certificates that come with weblogic installation. I have not generated any private keys or certificates.
I am new to the web logic server.
Please let me know we need to do any configurations in Web logic server to work in IE
or how to solve the issue.
Method-1 Install the certificate
1. In Windows Internet Explorer, click Continue to this website (not recommended).
2. A red Address Bar and a certificate warning appear.
3. Click the Certificate Error button to open the information window.
4. Click View Certificates, and then click Install Certificate.
5. On the warning message that appears, click Yes to install the certificate.
Method-2 Add website to Security zone
Check this : Add sites to security zone
Method-3 Disable certificate check.
1. To clear the certificate error, go to Tools --> Internet Options from the menu.
2. Click on the Advanced tab and scroll down to the security section. Clear the boxes for: "Check for publisher's certificate revocation" and "Check for server certificate revocation".
3. Click Apply and Ok.
4. Attempt to reload the page by clicking the Refresh button at the end of the address bar or by pressing the F5 key. Your page should now load as expected.
Personally i don't recommend Method-3. If you are facing the issue in development environment, i suggest you ignore it :)

Categories