TLS with selfsigned certificate

前端 未结 6 2002
再見小時候
再見小時候 2020-12-07 17:10

I\'m trying to establish a TLS connection with the use of a self signed server certificate.

I generated the certificate with this example code: http://golang.org/src

6条回答
  •  时光说笑
    2020-12-07 18:08

    It finally worked with the go built in x509.CreateCertificate, the problem was that I did not set the IsCA:true flag, I only set the x509.KeyUsageCertSign which made creating the self signed certificate work, but crashed while verifying the cert chain.

提交回复
热议问题