cli: plumbed through missing --server-cert-fingerprint option
Fixes:
serverAddress = serverCommands.Flag("address", "Server address").Default("http://127.0.0.1:51515").String()
serverUsername = serverCommands.Flag("server-username", "HTTP server username (basic auth)").Envar("KOPIA_SERVER_USERNAME").Default("kopia").String()
serverPassword = serverCommands.Flag("server-password", "HTTP server password (basic auth)").Envar("KOPIA_SERVER_PASSWORD").String()
+ serverCertFingerprint = serverCommands.Flag("server-cert-fingerprint", "Server certificate fingerprint").String()
)
func serverAPIClientOptions() (apiclient.Options, error) {
@@ -21,5 +22,6 @@ func serverAPIClientOptions() (apiclient.Options, error) {
BaseURL: *serverAddress,
Username: *serverUsername,
Password: *serverPassword,
+ TrustedServerCertificateFingerprint: *serverCertFingerprint,
}, nil
}
