Add tls client certificate authentication flags

This commit is contained in:
Andrea Lusuardi - uovobw 2015-09-30 19:06:28 +02:00
parent 5de1ece388
commit 5eb5959c93

View File

@ -28,6 +28,9 @@ func main() {
flag{"tls", "t", "Enable TLS/SSL"}, flag{"tls", "t", "Enable TLS/SSL"},
flag{"tls-crt", "", "TLS/SSL crt file path"}, flag{"tls-crt", "", "TLS/SSL crt file path"},
flag{"tls-key", "", "TLS/SSL key file path"}, flag{"tls-key", "", "TLS/SSL key file path"},
flag{"client", "C", "Enable Client Certificate"},
flag{"client-ca-file", "", "Client CA certificate file"},
flag{"client-verify", "", "Enable verification of client certificate"},
flag{"index", "", "Custom index.html file"}, flag{"index", "", "Custom index.html file"},
flag{"title-format", "", "Title format of browser window"}, flag{"title-format", "", "Title format of browser window"},
flag{"reconnect", "", "Enable reconnection"}, flag{"reconnect", "", "Enable reconnection"},
@ -40,6 +43,9 @@ func main() {
"tls": "EnableTLS", "tls": "EnableTLS",
"tls-crt": "TLSCrtFile", "tls-crt": "TLSCrtFile",
"tls-key": "TLSKeyFile", "tls-key": "TLSKeyFile",
"client": "EnableClientCertificate",
"client-ca-file": "ClientCAFile",
"client-verify": "EnableClientCertificateVerification",
"random-url": "EnableRandomUrl", "random-url": "EnableRandomUrl",
"reconnect": "EnableReconnect", "reconnect": "EnableReconnect",
} }