mirror of
https://github.com/PretendoNetwork/maryo.git
synced 2024-05-16 12:00:12 -04:00
another attempt at fixing this
This commit is contained in:
parent
7bba87e8cf
commit
54a3e0a528
13
maryo.go
13
maryo.go
|
@ -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"
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
9
setup.go
9
setup.go
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue