mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-22 12:24:25 +00:00
Add tls client certificate authentication flags
This commit is contained in:
parent
5de1ece388
commit
5eb5959c93
6
main.go
6
main.go
@ -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",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user