wget, self-signed certs and a custom HTTPS server

前端 未结 2 914
你的背包
你的背包 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条回答
  •  猫巷女王i
    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.

提交回复
热议问题