curl -k --request POST --header "Content-type: text/xml" --data @request.xml URL > response.xml
Wednesday, September 22, 2010
Posting XML to a Service Using Curl on Linux
Linux command line post of XML data to a specified URL.
Commandline Retrieval of a Remote SSL Certificate
Recently I've had to manage a lot of Java Keystores using keytool. Here's a convenient command to retrieve a remote servers SSL certificate so that you can import it as a trusted cert.
openssl s_client -connect remote.server.net:443 </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' >/path/to/certificate.pem
Subscribe to:
Posts (Atom)