RMNET NetSSLVerifyPeer not turn off certificate check, but curl -k does
Hi everyone.
I am working with 3rd party ssystem, that provides a web interface for their services. Have to use get/put/post for various things. Their examples use curl. I tested the connection on my system using curl. There is an error with the SSL certificate(s) apparently, as curl complains until I add the -k (--unsecure) option. That's fine, there is no private data, and everything will be inside a vpn. BUT. When I try to connect using RMNET, I get an error 7. When I check the NetGetError, the text is: "SSL peer certificate or SSH remote key was not OK". Fine. That's basically what curl said. So I tried the NetSSLVerifyPeer command to turn off the verify. Same error. (Note: The response-LEN is zero when doing the HttpGet)
Flow:
CALL "NetInit" GIVING AIMS-STATUS-CODE.
CALL "NetSSLVerifyPeer" USING 0 GIVING AIMS-STATUS-CODE.
CALL "HttpGet" USING
A