当前位置:   article > 正文

查询 HTTPS 网站 TLS 版本_查看网站tls版本

查看网站tls版本

参考

检查网站的TLS版本 – wentao's blog

Linux curl 命令详解 - 腾讯云开发者社区-腾讯云

TLS 版本查询_天泽岁月的博客-CSDN博客_查看tls版本


使用 OpenSSL

  1. openssl s_client -connect www.baidu.com:443 -tls1_2
  2. openssl s_client -connect www.baidu.com:443 -tls1_1
  3. openssl s_client -connect www.baidu.com:443 -tls1

以上分别检查了tls1.2,tls1.1和``tls1`。如果握手失败的话,那么就是不支持了

使用 testssl.sh

官网:https://testssl.sh/
GitHub:https://github.com/drwetter/testssl.sh
介绍使用:https://howiexue.blog.csdn.net/article/details/123864940

F12大法

  1. 使用浏览器的【F12】,在【安全性】可以查看到此页面上使用的TLS版本。

在这里插入图片描述

网页查询

https://www.ssllabs.com/ssltest/analyze.html

使用NMAP

依赖于nmap

 nmap --script ssl-enum-ciphers -p 443 baidu.com 

结果如下:

  1. Starting Nmap 7.91 ( https://nmap.org ) at 2020-11-29 09:51 CST
  2. Nmap scan report for baidu.com (39.156.69.79)
  3. Host is up (0.0068s latency).
  4. Other addresses for baidu.com (not scanned): 220.181.38.148
  5. PORT STATE SERVICE
  6. 443/tcp open https
  7. | ssl-enum-ciphers:
  8. | SSLv3:
  9. | ciphers:
  10. | TLS_ECDHE_RSA_WITH_RC4_128_SHA (secp256r1) - C
  11. | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
  12. | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
  13. | TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
  14. | TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
  15. | TLS_RSA_WITH_RC4_128_SHA (rsa 2048) - C
  16. | compressors:
  17. | NULL
  18. | cipher preference: server
  19. | warnings:
  20. | Broken cipher RC4 is deprecated by RFC 7465
  21. | CBC-mode cipher in SSLv3 (CVE-2014-3566)
  22. | TLSv1.0:
  23. | ciphers:
  24. | TLS_ECDHE_RSA_WITH_RC4_128_SHA (secp256r1) - C
  25. | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
  26. | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
  27. | TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
  28. | TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
  29. | TLS_RSA_WITH_RC4_128_SHA (rsa 2048) - C
  30. | compressors:
  31. | NULL
  32. | cipher preference: server
  33. | warnings:
  34. | Broken cipher RC4 is deprecated by RFC 7465
  35. | TLSv1.1:
  36. | ciphers:
  37. | TLS_ECDHE_RSA_WITH_RC4_128_SHA (secp256r1) - C
  38. | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
  39. | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
  40. | TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
  41. | TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
  42. | TLS_RSA_WITH_RC4_128_SHA (rsa 2048) - C
  43. | compressors:
  44. | NULL
  45. | cipher preference: server
  46. | warnings:
  47. | Broken cipher RC4 is deprecated by RFC 7465
  48. | TLSv1.2:
  49. | ciphers:
  50. | TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (secp256r1) - A
  51. | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (secp256r1) - A
  52. | TLS_ECDHE_RSA_WITH_RC4_128_SHA (secp256r1) - C
  53. | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
  54. | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
  55. | TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (secp256r1) - A
  56. | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (secp256r1) - A
  57. | TLS_RSA_WITH_AES_128_GCM_SHA256 (rsa 2048) - A
  58. | TLS_RSA_WITH_AES_256_GCM_SHA384 (rsa 2048) - A
  59. | TLS_RSA_WITH_AES_128_CBC_SHA256 (rsa 2048) - A
  60. | TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
  61. | TLS_RSA_WITH_AES_256_CBC_SHA256 (rsa 2048) - A
  62. | TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
  63. | TLS_RSA_WITH_RC4_128_SHA (rsa 2048) - C
  64. | compressors:
  65. | NULL
  66. | cipher preference: server
  67. | warnings:
  68. | Broken cipher RC4 is deprecated by RFC 7465
  69. |_ least strength: C
  70. Nmap done: 1 IP address (1 host up) scanned in 3.22 seconds

使用CURL(windows下不可用)

  1. curl --tlsv1.0 -v "https://www.baidu.com"
  2. curl --tlsv1.1 -v "https://www.baidu.com"
  3. curl --tlsv1.2 -v "https://www.baidu.com"

-0, --http1.0

(HTTP)强制curl使用HTTP 1.0发出请求,而不是使用其内部首选的HTTP 1.1。

-1, --tlsv1

(SSL)强制curl使用TLS 1.x 版本,当与远程TLS服务进行协商时。 可以使用选项 --tlsv1.0、--tlsv1.1和 --tlsv1.2来更精确地控制TLS版本(如果使用的SSL后端支持这种级别的控制)。

-2, --sslv2

(SSL)强制curl使用TLS 2 版本,当与远程TLS服务进行协商时。

-3, --sslv3

(SSL)强制curl使用TLS 3 版本,当与远程TLS服务进行协商时。

-4, --ipv4

如果curl能够将一个地址解析为多个IP版本(比如它支持ipv4和ipv6),那么这个选项告诉curl只将名称解析为IPv4地址。

-6, --ipv6

如果curl能够将一个地址解析为多个IP版本(比如它支持ipv4和ipv6),那么这个选项告诉curl只将名称解析为IPv6地址。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/624242
推荐阅读
相关标签
  

闽ICP备14008679号