enbaled x509 vnc by default

This commit is contained in:
Devaev Maxim 2021-02-15 05:35:50 +03:00
parent dc5a07adb3
commit 308832f986
16 changed files with 76 additions and 76 deletions

View File

@ -60,8 +60,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -61,8 +61,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -60,8 +60,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -61,8 +61,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -72,8 +72,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -72,8 +72,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -72,8 +72,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -72,8 +72,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -62,8 +62,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -76,8 +76,8 @@ vnc:
# h264: # h264:
# sink: "kvmd::ustreamer::h264" # sink: "kvmd::ustreamer::h264"
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -63,8 +63,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -70,8 +70,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -74,8 +74,8 @@ vnc:
streamer: streamer:
unix: /run/kvmd/ustreamer.sock unix: /run/kvmd/ustreamer.sock
# server: server:
# tls: tls:
# x509: x509:
# cert: /etc/kvmd/nginx/ssl/server.crt cert: /etc/kvmd/vnc/ssl/server.crt
# key: /etc/kvmd/nginx/ssl/server.key key: /etc/kvmd/vnc/ssl/server.key

View File

@ -585,7 +585,7 @@ def _get_config_scheme() -> Dict:
"tls": { "tls": {
"ciphers": Option("ALL:@SECLEVEL=0", type=_make_ifarg(valid_ssl_ciphers, "")), "ciphers": Option("ALL:@SECLEVEL=0", type=_make_ifarg(valid_ssl_ciphers, "")),
"timeout": Option(5.0, type=valid_float_f01), "timeout": Option(30.0, type=valid_float_f01),
"x509": { "x509": {
"cert": Option("", type=_make_ifarg(valid_abs_file, "")), "cert": Option("", type=_make_ifarg(valid_abs_file, "")),
"key": Option("", type=_make_ifarg(valid_abs_file, "")), "key": Option("", type=_make_ifarg(valid_abs_file, "")),

View File

@ -45,13 +45,13 @@
<div class="start"><a style="display:inline-block; margin-top:4px; color:#5c90bc; text-decoration:none" href="/">&nbsp;&nbsp;&larr;&nbsp;&nbsp; [ Pi-KVM Index ]</a> <div class="start"><a style="display:inline-block; margin-top:4px; color:#5c90bc; text-decoration:none" href="/">&nbsp;&nbsp;&larr;&nbsp;&nbsp; [ Pi-KVM Index ]</a>
<hr> <hr>
<p class="text">This Pi-KVM device has running <b>kvmd-vnc</b> daemon and provides VNC access to the server.</p> <p class="text">This Pi-KVM device has running <b>kvmd-vnc</b> daemon and provides VNC access to the server.</p>
<p class="text"><b>WARNING!</b> We strongly don't recommend you to use VNC in untrusted networks. <p class="text"><b>WARNING!</b> We strongly don't recommend you to use VNC in untrusted networks without
The current implementation does not use encryption, and your passwords are transmitted enabled X.509 or TLS encryption. Otherwise your passwords are transmitted in a plain text
over the network in a plain text. over the network.
</p> </p>
<p class="text"> <p class="text">
Your VNC client must support Tight JPEG compression, password authentication and allow Your VNC client must support Tight JPEG compression and password authentication.
connection without encryption. <a href="https://tigervnc.org">TigerVNC</a> is a good choice. <a href="https://tigervnc.org">TigerVNC</a> is a good choice.
On Linux, this client will most likely be available for installation from the repository. On Linux, this client will most likely be available for installation from the repository.
It can also be called vncviewer. It can also be called vncviewer.
</p> </p>

View File

@ -9,12 +9,12 @@ block start
p(class="text") p(class="text")
| This Pi-KVM device has running #[b kvmd-vnc] daemon and provides VNC access to the server. | This Pi-KVM device has running #[b kvmd-vnc] daemon and provides VNC access to the server.
p(class="text") p(class="text")
| #[b WARNING!] We strongly don't recommend you to use VNC in untrusted networks. | #[b WARNING!] We strongly don't recommend you to use VNC in untrusted networks without
| The current implementation does not use encryption, and your passwords are transmitted | enabled X.509 or TLS encryption. Otherwise your passwords are transmitted in a plain text
| over the network in a plain text. | over the network.
p(class="text") p(class="text")
| Your VNC client must support Tight JPEG compression, password authentication and allow | Your VNC client must support Tight JPEG compression and password authentication.
| connection without encryption. #[a(href="https://tigervnc.org") TigerVNC] is a good choice. | #[a(href="https://tigervnc.org") TigerVNC] is a good choice.
| On Linux, this client will most likely be available for installation from the repository. | On Linux, this client will most likely be available for installation from the repository.
| It can also be called vncviewer. | It can also be called vncviewer.
div(id="vnc-text" class="code" style="max-height:200px") div(id="vnc-text" class="code" style="max-height:200px")