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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6ce2a407-600d-44b7-97d1-53e90e91e7c8n%40googlegroups.com.

Reply via email to