mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-05-11 10:38:21 +00:00
Removed hardcoded paths and fixed typo
This commit is contained in:
parent
d5e2df49db
commit
72cfd79b77
1 changed files with 3 additions and 3 deletions
|
@ -17,12 +17,12 @@ func GetClientCertificate() (tls.Certificate, error) {
|
|||
return tls.Certificate{}, nil
|
||||
}
|
||||
if certExists && !keyExists {
|
||||
return tls.Certificate{}, fmt.Errorf("Client TLS private key is empty, but client TLS cert was sent.")
|
||||
return tls.Certificate{}, fmt.Errorf("Client TLS private key is empty, but client TLS cert was set.")
|
||||
}
|
||||
if !certExists && keyExists {
|
||||
return tls.Certificate{}, fmt.Errorf("Client TLS cert is empty, but client TLS private key was sent.")
|
||||
return tls.Certificate{}, fmt.Errorf("Client TLS cert is empty, but client TLS private key was set.")
|
||||
}
|
||||
return tls.LoadX509KeyPair("client.cert", "client-key.pem")
|
||||
return tls.LoadX509KeyPair(cert, key)
|
||||
}
|
||||
|
||||
func GetHttpClient() (*http.Client, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue