SHA256
1
0
forked from pool/tigervnc

Accepting request 511092 from home:michalsrb:branches:X11:XOrg

- Change with-vnc-key.sh to generate TLS certificate using current
  hostname. (bnc#1041847)

OBS-URL: https://build.opensuse.org/request/show/511092
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/tigervnc?expand=0&rev=113
This commit is contained in:
Michal Srb 2017-07-18 08:35:55 +00:00 committed by Git OBS Bridge
parent a1029b08cd
commit fa28464865
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 7 08:06:00 UTC 2017 - msrb@suse.com
- Change with-vnc-key.sh to generate TLS certificate using current
hostname. (bnc#1041847)
-------------------------------------------------------------------
Fri Jun 9 11:03:23 UTC 2017 - tchvatal@suse.com

View File

@ -143,6 +143,8 @@ Requires: xinit
Requires: xkbcomp
Requires: xkeyboard-config
Requires: xorg-x11-fonts-core
# For the with-vnc-key.sh script
Requires: /bin/hostname
Provides: xorg-x11-Xvnc:/usr/lib/vnc/with-vnc-key.sh
Summary: TigerVNC implementation of Xvnc
Group: System/X11/Servers/XF86_4

View File

@ -24,7 +24,8 @@ fi
# If the cert file doesn't exist, generate it.
if ! test -e $TLSCERT ; then
CN="Automatically generated certificate for the VNC service"
# Keeping it short, because hostname could be long and max CN is 64 characters
CN="VNC service on `hostname`"
openssl req -new -x509 -extensions usr_cert -key $TLSKEY -out $TLSCERT -days 7305 -subj "/CN=$CN/"
chown vnc:vnc $TLSCERT
fi