I want to open a HTTPS connection in a Google App Engine app using the URLFetch service. To be able to verify the SSL certificate of the server my a
I have had a similar problem... I needed a keystore.p12
to call a foreign web service but had no chance loading it from the classpath. The only way I was able to use it was to put it in e.g. /WEB-INF/keystore.p12
and load it from there.
ServletContext context = getContext();
URL resourceUrl = context.getResource("/WEB-INF/keystore.p12");