curl --resolve 查看证书情况
2024-08-22 20:07:24
通过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
最新文章
- X Window 的奥秘
- Linux(Centos)系统上搭建SVN以及常见错误解答
- SDDC-SDN-SDS
- asp.net中Ajax控件的用途(一)
- 拥抱HTML5 — Page Visibility(页面可见性) API介绍
- nginx相关优化
- Mtk Android编译命令
- Lumina将是基于 Qt工具箱,旨在取代KDE成为PC-BSD默认的桌面环境
- shell编程之sed
- selenium 多线程
- Eclipse中SVN设置文件为ignore后重新添加至版本控制
- 【作业2.0】HansBug的5-7次OO作业分析与小结,以及一些个人体会
- loj553 「LibreOJ Round #8」MINIM
- Java后端学习,推荐书籍和学习路线
- C++ const用法
- Notepad++ 配置 Sql PoorMan 插件
- Adams输出宏代码
- Java 泛型方法、泛型类、通配符、通配符上下限
- ARM的9种寻址方式
- ODAC(V9.5.15) 学习笔记(三)TOraSession(3)
热门文章
- The Last Goodbye 电影《霍比特人3:五军之战》插曲
- 【CSS3】 新增属性
- C语言定义结构体指针数组并初始化;里面全是结构体的地址
- beego-vue URL重定向(beego和vue前后端分离开发,beego承载vue前端分离页面部署)
- loadRunner目录分析<;二>;
- TCP采用四次挥手关闭连接如图所示为什么建立连接协议是三次握手,而关闭连接却是四次握手呢?
- jquery中清空
- HTML Entity
- Spring Boot AOP 简易操作日志管理
- Thingsboard 重新启动docker-compose容器基础数据存在的问题