Closed tcastelly closed 3 years ago
You're listening for HTTP requests, not HTTPS
https://golang.org/src/net/http/server.go?s=91632:91673#L2888
You probably want:
s.ListenAndServeTLS("", "")
Here's some slides for a talk I gave on using Go's TLS libraries https://docs.google.com/presentation/d/16y-HTvL7ASzf9JspCBX0OVmhwUWVoLj9epzJfNMQRr8/preview?slide=id.p
Closing, since this doesn't appear to be a bug in piv-go.
It works!
Your slides are very interesting. Thank you so much!
Hello,
I'm trying to use an x.509 certificate to serve TLS traffic;
The certificate has been generated in the same way as key_test.go.
I defined the http serve like this:
When I try to access to https://localhost:1443 I have this error with the curl command:
I've created a repository: https://github.com/shenron/try-piv-go
I've some difficulty to understand if the problem come from the combination with the private key. Or if it's something else.