Hello All
I am trying to write some code JSP/bean code where the web page does a OCSP
certificate validation programmatically. Here is the snippet.
// enable OCSP
Security.setProperty("ocsp.enable", "true");
if (ocspServer != null) {
Security.setProperty("ocsp.responderURL", OCSPUrl);
Security.setProperty("ocsp.responderCertSubjectName",
caCert.getSubjectX500Principal().getName());
}
When the code executes the first Security.setProperty it throws the
following exception.
java.security.AccessControlException: access denied (
"java.security.SecurityPermission" "setProperty.ocsp.enable")
at java.security.AccessControlContext.checkPermission(
AccessControlContext.java:366)
at java.security.AccessController.checkPermission(AccessController.
java:560)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
549)
at com.google.appengine.tools.development.
DevAppServerFactory$CustomSecurityManager.checkPermission(
DevAppServerFactory.java:431)
at java.lang.SecurityManager.checkSecurityAccess(SecurityManager.
java:1715)
at java.security.Security.check(Security.java:855)
at java.security.Security.setProperty(Security.java:793)
at com.example.myproject.CRLValidate.OCSPValidation(CRLValidate.java
:104)
at com.example.myproject.cryptoutils.valiateOCSP(cryptoutils.java:40
)
at org.apache.jsp.NewFile_jsp._jspService(NewFile_jsp.java:109)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97
)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.
java:313)
Any thoughts of how to solve this. I am using eclipse with GAE(jetty) for
the local env testing.
Please let me know
Thanks
Prem
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.