We have been trying for weeks to get our CCN transmissions connected to the bank’s test machine using their new certs. Would appreciate ANY useful suggestions to resolve this problem.
Details below:
RESULT=setHTTPDefault("HEADERS","")
RESULT=setHTTPDefault("VERSION","1.1")
RESULT=setHTTPDefault("BUFSIZE","8192")
RESULT=createSecurityContext(CMP_CONTEXT,"TLSv1.2:Min")
RESULT=addAuthenticationRule(CMP_CONTEXT,2,"ServerName","a-b.c.com")
RESULT=addAuthenticationRule(CMP_CONTEXT,2,"VerificationStrength","Generous")
(there is a chain.pem that includes both root & issuing certs , but it did not
like that, so we added them seperately.)
RESULT=addCertificate("/a/b/c/ROOT CA.pem",2,1,1,CMP_CONTEXT)
RESULT=addCertificate("/a/b/c/ISSUING CA 01.pem",2,1,1,CMP_CONTEXT)
RESULT=addCertificate("/a/b/c/xxx.com.pem",1,1,1,CMP_CONTEXT)
RESULT=setPrivateKey("/a/b/c/xxx.com_pvtkey",1,2,"zzzzzzzz",1,CMP_CONTEXT)
RESULT=createSecureRequest("https://bank.services",CMP_METHOD,CMP_REQHANDLE,CMP_CONTEXT)
ENCODESTATUS = ENCODE("BASE64", 1, "username:password", 1, ENCODEDSTR, 1)
RESULT=setRequestHeader(CMP_REQHANDLE, "Authorization:Basic", ENCODEDSTR)
RESULT=setRequestHeader(CMP_REQHANDLE,"Content-Type","test/xml;charset=utf-8")
RESULT=submitRequest(CMP_REQHANDLE,
CMP_TIMEOUT,
CMP_POSTDATA, <-- the actual SOAPenvelope
CMP_RESPHDRS,
CMP_RESPDATA,
CMP_RESPSTATUS)
The RESPDATA comes back:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:
Client</faultcode><faultstring xml:lang="en">CompassAuthException</faultstring><
detail>Input SOAP Request is not well-formed. The Exception is org.xml.sax.SAXPa
rseException; lineNumber: 1; columnNumber: 1; Premature end of file.</detail></S
OAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
The RESPSTATUS comes back: 200ýOK
However, submitting via openSSL works fine?
The bank's tech support folks feel that U2 Basic is doing something to the
payload that their parser doesn’t like, while their PostMan and OpenSSL
test all work fine.
Google makes this error sound like the SOAP package is blank.
Hoping for some ideas.
Nelson
