mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-29 07:26:20 +08:00
return certs in correct order
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
This commit is contained in:
parent
d177d9507e
commit
d312bf6636
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ func genCerts(clientKey *ed25519.PrivateKey, name *pkix.Name) (*x509.Certificate
|
||||||
logger.Log(2, "unable to generate client certificate", err.Error())
|
logger.Log(2, "unable to generate client certificate", err.Error())
|
||||||
return nil, nil, fmt.Errorf("client certification generation failed %w", err)
|
return nil, nil, fmt.Errorf("client certification generation failed %w", err)
|
||||||
}
|
}
|
||||||
return ca, cert, nil
|
return cert, ca, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func genOpenSSLCerts(key *ed25519.PrivateKey, name *pkix.Name) (*x509.Certificate, *x509.Certificate, error) {
|
func genOpenSSLCerts(key *ed25519.PrivateKey, name *pkix.Name) (*x509.Certificate, *x509.Certificate, error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue