首先是准备资料:

curl doc http://curl.haxx.se/docs/manpage.html

资料1 http://www-900.ibm.com/cn/support/faqhtmlfaq/2311073I23001.htm

资料2 http://dannyyuan.blog.51cto.com/212520/124957/

http://curl.haxx.se/docs/sslcerts.html

要准备的文件:

openssl.exe

curl.exe

libeay32.dll

libssl32.dll

关于证书:

从IE导出证书后转换的命令(分别用于DER和Base64编码)

openssl x509 -inform DES -in srca_der.cer -text -out srca_der.crt

openssl x509 -inform PEM -in srca_b64.cer -text -out srca_b64.crt

小试牛刀:

取验证码:

curl.exe https://dynamic.12306.cn/otsweb/passCodeAction.do?rand=sjrand&0.8001746358349919 -c cookies/43299032.cookie -k -e https://dynamic.12306.cn/otsweb/loginAction.do?method=login --cacert bin/srca_der.crt --capath SRCA -# --create-dirs

 

 

未完待续……

相关文章:

  • 2022-12-23
  • 2022-02-11
  • 2021-12-06
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
猜你喜欢
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-12-25
  • 2022-03-11
相关资源
相似解决方案