Separating CA certificate path and client key and cert addition to options.
This commit is contained in:
parent
bafea8b667
commit
0ad1a8d698
1 changed files with 6 additions and 2 deletions
|
@ -107,8 +107,12 @@ func main() {
|
||||||
clientOptions = append(clientOptions, realis.SchedulerUrl(url))
|
clientOptions = append(clientOptions, realis.SchedulerUrl(url))
|
||||||
}
|
}
|
||||||
|
|
||||||
if clientKey != "" && clientCert != "" && caCertsPath != "" {
|
if caCertsPath != "" {
|
||||||
clientOptions = append(clientOptions, realis.Certspath(caCertsPath), realis.ClientCerts(clientKey, clientCert))
|
clientOptions = append(clientOptions, realis.Certspath(caCertsPath))
|
||||||
|
}
|
||||||
|
|
||||||
|
if clientKey != "" && clientCert != "" {
|
||||||
|
clientOptions = append(clientOptions, realis.ClientCerts(clientKey, clientCert))
|
||||||
}
|
}
|
||||||
|
|
||||||
r, err = realis.NewRealisClient(clientOptions...)
|
r, err = realis.NewRealisClient(clientOptions...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue