Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mariojackson/snippetbox

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
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

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.