下面说下拿服务器证书.(前提是服务器是https,客户端认证用的时候),服务端不给的时候,我们自己去拿(不给怼他!,哈哈,开个玩笑,都会给的)

openssl s_client -connect 域名:端口号 -showcerts|openssl x509 -outform der > cert.der
例如:
openssl s_client -connect www.baidu.com:443 -showcerts|openssl x509 -outform der > cert.der (前提是必须服务端已经https连接,因为只有服务端是https连接才会有证书,这个命令只是从服务端拿到证书)

 

相关文章:

  • 2021-09-02
  • 2021-08-11
  • 2021-12-15
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-05
  • 2021-11-28
  • 2022-01-18
  • 2021-09-19
  • 2021-11-28
相关资源
相似解决方案