Java applet with self-signed certificate on OS X Mountain Lion
Solution 1
It is new security feature in Mac OS X, by default only apps from Mac Store & from trusted developers are allowed to run there. Fortunatelly, it is easy to change, you have to allow this in Mac OS X preferences.
Go to Preferences -> Security & Privacy and click on padlock to allow changes.
Then in "Allow appications downloaded from" select "Anywhere".
After that, the button in Java dialog will be enabled.
Solution 2
If you get the "Application Blocked by Security Settings
" message, you need to go into System Preferences: Java: Security
and either add your site to the exception list or reduce the security level
to Medium
.
Comments
-
Rasmus Faber over 4 years
We have a Java applet that needs to run with full trust.
While developing and during pre-release tests we sign it using a self-signed certificate (the production version is signed with a real code signing certificte).
But when we try to start the self-signed applet on the prerelases of OS X 10.8, we can no longer choose to allow it to run. The "Allow"-button is simply disabled:
If I press "Show Details..." I can choose to "Always trust" the certificate, but this makes no difference:
It works with the same version of the Java JRE on OS X Lion 10.7, so I suspect it is an issue with the OS and not the JRE.
Are there any workarounds?
I would prefer not to use a real code signing certificate for testing: signing with a real code signing certificate means that my company asserts that the applet is secure and should be trusted. We can hardly assert that before we have tested it.
-
Rasmus Faber almost 12 yearsPerfect! Thank you very much.
-
Admin over 10 yearsWow... I really hope he isn't deploying this to 1000 beta testers.
-
Andrew Mackenzie over 10 yearsWhen I enable the "AnyWhere" option, the behaviour changes, but I still get an error dialog stating: "Application Blocked by Security Settings" and "Your Security settings have blocked a self-signed application from running". The app is one of the JavaFX sample apps. On Mac OS X 10.9 Mavericks, Java 8.
-
Andrew Mackenzie over 10 yearsI have this problem with one of the JavaFX sample apps. On Mac OS X 10.9 Mavericks, Java 8. I can't seem to find the key it is using to "self-sign" the app, or where the keystore might be to export the key and import to keychain. Any ideas? Meanwhile I'll browse through all the ant build scripts.....
-
Muhammad over 9 yearswhat about in the mac?