How do I use a self-signed certificate so I can use https locally?
You have to do something like this: router.RunTLS(":8888", certPath string, privatekeyPath string)
Both files must be in pem-format
Most helpful comment
You have to do something like this:
router.RunTLS(":8888", certPath string, privatekeyPath string)
Both files must be in pem-format