Verifying SSL Web site with Curl (WebService)

Source: Internet
Author: User
Tags openssl x509

Usage of Curl:

Http://linux.about.com/od/commands/l/blcmdl1_curl.htm

Der Format cert converted to PEM format (Curl accepts PEM format only):

OpenSSL x509-inform der-in cert.cer-out Cert.pem

The Curl command signals:

Curl--cacert Rootca.pem (or--capath ' Certpath '-h ' content-type:text/xml; Charset=utf-8 '-H ' soapaction: "Http://tempuri.org/HeartBeat" ' Https://xxxx.asmx-data @heartbeat. xml

--capath Parameters for Curl:

The certificate chain that validates the SSL Web site is stored under the path indicated by Capath and must be handled with C_rehash. C_rehash is similar to the following code:

  

for file in *.pem; Do    ln-s $file ' OpenSSL x509-hash-noout-in $file '. 0;done

Heartbeat.xml is a file with parameters HTMLEncode:

Btgs not to copy things, I only have a general description. <soap12:Envelope> and <soap12:body> are fixed, webservice are the same.

<soap12:body> Below is

Btgs can't stand, to share summed up things are so laborious.

Verifying SSL Web site with Curl (WebService)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.