hi hugh,
i played around with the same idea six years ago, resulting in
https://github.com/mb0/localca
it will use a self signed root cerificate and creates new child
certificates specific to the requested hostname, be it an ip or a name
like my_local.box
i haven't tested it for awhile, but the idea does apply.
have fun
On 6/28/22 02:35, Hugh Myrie wrote:
I wish to create a secure private network using a self-signed
certificate with a Go web server: See the following code block:
// Code
err := http.ListenAndServeTLS(":"+port, "auto.org.pem",
"auto.org-key.pem", handler)
if err != nil {
logError((err.Error()))
log.Fatal("ListenAndServe: ", err)
}
// End of Code
Could I auto generate (and register) the .pem and .key files using GO?
I wish to create a trust certificate if there files do not exist.
I came across the following website:
"https://gist.github.com/shaneutt/5e1995295cff6721c89a71d13a71c251"
I am not sure how to implement this. Your help is appreciated.
--
You received this message because you are subscribed to the Google
Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to golang-nuts+unsubscr...@googlegroups.com
<mailto:golang-nuts+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/6ce2a407-600d-44b7-97d1-53e90e91e7c8n%40googlegroups.com
<https://groups.google.com/d/msgid/golang-nuts/6ce2a407-600d-44b7-97d1-53e90e91e7c8n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/63b7a250-5afc-6171-6526-00796498ea36%40mb0.org.