Skip to content

Instantly share code, notes, and snippets.

@nleiva
Created July 17, 2019 19:42
Show Gist options
  • Save nleiva/0ed1382ed12f6318b66fe298a399ab6b to your computer and use it in GitHub Desktop.
Save nleiva/0ed1382ed12f6318b66fe298a399ab6b to your computer and use it in GitHub Desktop.
cfg := certify.CertConfig{
SubjectAlternativeNames: []string{"localhost"},
IPSubjectAlternativeNames: []net.IP{
net.ParseIP("127.0.0.1"),
net.ParseIP("::1"),
},
KeyGenerator: RSA{bits: 2048},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment