Create the password protected root certificate key and self sign this certificate
openssl genrsa -des3 -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem
package time_profile | |
import "time" | |
func timeAfter() chan struct{} { | |
ch := make(chan struct{}) | |
go timeAfterGoroutine(ch) | |
return ch |
Create the password protected root certificate key and self sign this certificate
openssl genrsa -des3 -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem
package main | |
import "fmt" | |
//Listener is a | |
type Listener struct { | |
ID int | |
} | |
//ListenerInterface is an |
//hello.go | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
) | |
func handler(writer http.ResponseWriter, request *http.Request) { |