Skip to content

mariojackson/snippetbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snippetbox

Creating Certificates

We want to serve files via https also for devlopment and therefore we need to create a self signed certificate. Luckily Go comes with a tool for that out of the box which we can use. In order to create these certicficates, create a tls directory in the root and execute the following command:

go run /usr/local/go/src/crypto/tls/generate_cert.go --rsa-bits=2048 --host=localhost

If you've installed Go via homebrew, you can find the generate_cert.go file under /usr/local/Cellar/go/<version>/libexec/src/crypto/tls/generate_cert.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published