2009
11.27
11.27
When integrating with a web service that requires ssl, I find it helpful to write code to use a non-ssl web service. This will ensure that you can debug your code without worrying about ssl certificate issues and such. I use Socat to establish the ssl connection and then point my code at the local port serving normal http.
Install Socat (a network relay utility) available at http://freshmeat.net/projects/socat/
Establish the SSL connection:
socat tcp4-listen:9090,fork openssl:10.2.0.43:443,verify=0,cafile=/opt/apps/config/cacert.pem,key=/opt/apps/config/local.key,cert=/opt/apps/config/local.crt
Use localhost:9090 as the web service URL during development / testing.
Be sure to get your code working with the real ssl enabled web service prior to deploying the app in production.

No Comment.
Add Your Comment