another attempt at fixing this

This commit is contained in:
Superwhiskers 2018-04-22 00:28:11 -05:00
parent 7bba87e8cf
commit 54a3e0a528
2 changed files with 14 additions and 8 deletions

View file

@ -89,11 +89,16 @@ func main() {
// check the cert
if doesFileExist("maryo-data/cert.pem") != false {
// check the key
if doesFileExist("maryo-data/key.pem") != false {
// check the pubkey
if doesFileExist("maryo-data/public-key.pem") != false {
// check the privatekey
if doesFileExist("maryo-data/private-key.pem") != false {
// say it is valid if it is there
fileMap["cert"] = "va"
// say it is valid if it is there
fileMap["cert"] = "va"
}
}

View file

@ -83,10 +83,11 @@ func doCertGen(config string) {
SubjectKeyId: []byte{ 1, 2, 3 },
SerialNumber: big.NewInt(1234),
Subject: pkix.Name{
Country: []string{ "somewhere" },
Organization: []string{ "private use only" },
CommonName: "maryo-cert",
Organization: []string{"pretendo"},
Country: []string{"US"},
},
NotBefore: time.Now(),
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth},