mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-07-13 05:09:09 +00:00
Added flags for passing client cert and client private key as file contents instead of paths
This commit is contained in:
parent
0273cee2ba
commit
78ed21f62b
2 changed files with 34 additions and 13 deletions
|
@ -22,7 +22,7 @@ func GetClientCertificate() (tls.Certificate, error) {
|
|||
if !certExists && keyExists {
|
||||
return tls.Certificate{}, fmt.Errorf("Client TLS cert is empty, but client TLS private key was set.")
|
||||
}
|
||||
return tls.LoadX509KeyPair(cert, key)
|
||||
return tls.X509KeyPair([]byte(cert), []byte(key))
|
||||
}
|
||||
|
||||
func GetHttpClient() (*http.Client, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue