Forum Discussion
Accenture_Austr_1
14 years agoNew Contributor
They did reply, yesterday, via email.
No luck with the multiple MockServices - they asked me to try the latest 4.0.2 nightly build, which I haven't done yet since I'm running the 4.5 Beta.
With regards to SSL certificate information, I managed to extract it using Jetty:
No luck with the multiple MockServices - they asked me to try the latest 4.0.2 nightly build, which I haven't done yet since I'm running the 4.5 Beta.
With regards to SSL certificate information, I managed to extract it using Jetty:
def v = (java.security.cert.X509Certificate[]) mockRequest.getHttpRequest().getAttribute("javax.servlet.request.X509Certificate")
if(v.length < 1)
{
log.error "No certificates found in the request"
return
}
if(!(v[0] instanceof java.security.cert.X509Certificate))
{
log.error "Certificate in wrong format"
return
}