通过curl  解析证书

[root@harbor ~]# curl --resolve 'www.abc.com:127.0.0.1' https://www.abc.com/ -vvv
* Couldn't parse CURLOPT_RESOLVE entry 'www.abc.com:127.0.0.1'!
* Trying 117.121.111.212:...
* TCP_NODELAY set
* Connected to www.abc.com (117.121.111.212) port (#)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* TLSv1. (OUT), TLS header, Certificate Status ():
* TLSv1. (OUT), TLS handshake, Client hello ():
* TLSv1. (IN), TLS handshake, Server hello ():
* NPN, negotiated HTTP1.
* TLSv1. (IN), TLS handshake, Certificate ():
* TLSv1. (IN), TLS handshake, Server key exchange ():
* TLSv1. (IN), TLS handshake, Server finished ():
* TLSv1. (OUT), TLS handshake, Client key exchange ():
* TLSv1. (OUT), TLS change cipher, Change cipher spec ():
* TLSv1. (OUT), TLS handshake, Next protocol ():
* TLSv1. (OUT), TLS handshake, Finished ():
* TLSv1. (IN), TLS change cipher, Change cipher spec ():
* TLSv1. (IN), TLS handshake, Finished ():
* SSL connection using TLSv1. / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: C=CN; ST=\U5317\U4EAC\U5E02; L=\U5317\U4EAC\U5E02; O=\U5FC3\U533B\U56FD\U9645\U6559\U80B2\U79D1\U6280(\U5317\U4EAC)\U6709\U9650\U516C\U53F8; OU=IT; CN=*.abc.com
* start date: Mar :: GMT
* expire date: Dec :: GMT
* subjectAltName: host "www.abc.com" matched cert's "*.abc.com"
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=GeoTrust RSA CA
* SSL certificate verify ok.
> GET / HTTP/1.1
> Host: www.xinyixy.com
> User-Agent: curl/7.67.
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< Server: xinyixy web server
< Date: Thu, 28 Nov 2019 02:51:05 GMT
< Content-Length: 0
< Connection: keep-alive
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< Location: http://www.abc.com/index
< Content-Language: en-US
<
* Connection #0 to host www.abc.com left intact

最新文章

  1. X Window 的奥秘
  2. Linux(Centos)系统上搭建SVN以及常见错误解答
  3. SDDC-SDN-SDS
  4. asp.net中Ajax控件的用途(一)
  5. 拥抱HTML5 — Page Visibility(页面可见性) API介绍
  6. nginx相关优化
  7. Mtk Android编译命令
  8. Lumina将是基于 Qt工具箱,旨在取代KDE成为PC-BSD默认的桌面环境
  9. shell编程之sed
  10. selenium 多线程
  11. Eclipse中SVN设置文件为ignore后重新添加至版本控制
  12. 【作业2.0】HansBug的5-7次OO作业分析与小结,以及一些个人体会
  13. loj553 「LibreOJ Round #8」MINIM
  14. Java后端学习,推荐书籍和学习路线
  15. C++ const用法
  16. Notepad++ 配置 Sql PoorMan 插件
  17. Adams输出宏代码
  18. Java 泛型方法、泛型类、通配符、通配符上下限
  19. ARM的9种寻址方式
  20. ODAC(V9.5.15) 学习笔记(三)TOraSession(3)

热门文章

  1. The Last Goodbye 电影《霍比特人3:五军之战》插曲
  2. 【CSS3】 新增属性
  3. C语言定义结构体指针数组并初始化;里面全是结构体的地址
  4. beego-vue URL重定向(beego和vue前后端分离开发,beego承载vue前端分离页面部署)
  5. loadRunner目录分析&lt;二&gt;
  6. TCP采用四次挥手关闭连接如图所示为什么建立连接协议是三次握手,而关闭连接却是四次握手呢?
  7. jquery中清空
  8. HTML Entity
  9. Spring Boot AOP 简易操作日志管理
  10. Thingsboard 重新启动docker-compose容器基础数据存在的问题