Gin: Use self-signed SSL certificate locally

Created on 12 Feb 2016  路  1Comment  路  Source: gin-gonic/gin

How do I use a self-signed certificate so I can use https locally?

question

Most helpful comment

You have to do something like this:
router.RunTLS(":8888", certPath string, privatekeyPath string)

Both files must be in pem-format

>All comments

You have to do something like this:
router.RunTLS(":8888", certPath string, privatekeyPath string)

Both files must be in pem-format

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cxk280 picture cxk280  路  3Comments

gplume picture gplume  路  3Comments

oryband picture oryband  路  3Comments

mastrolinux picture mastrolinux  路  3Comments

sofish picture sofish  路  3Comments