wget, self-signed certs and a custom HTTPS server

前端 未结 2 908
你的背包
你的背包 2021-02-05 18:21

For various reasons I have created a simple HTTP server, and added SSL support via OpenSSL. I\'m using self-signed certificates. IE, Firefox and Chrome happily load content as

相关标签:
2条回答
  • 2021-02-05 18:56

    You can also install trusted root CA certificates into OpenSSL in one of a number of ways:

    • Put your CA certificate in /etc/pki/tls/certs or equivalent directory, then create a link based on the certificate hash. See http://gagravarr.org/writing/openssl-certs/others.shtml#ca-openssl for details.
    • Append your CA certificate to /etc/pki/tls/certs/ca-bundle.crt, /etc/pki/tls/cert.pem, or equivalent CA bundle.
    0 讨论(0)
  • 2021-02-05 19:02

    I checked the man page of wget, and --no-check-certificate only seems to affect the server certificate. You need to specify your self-signed certificate as a valid CA certificate locally.

    To do this, specify the certificate as --ca-certificate=... in wget and -CAfile in the s_client case.

    0 讨论(0)
提交回复
热议问题