LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-15-2023, 04:50 PM   #1
Corrado
Member
 
Registered: Aug 2004
Location: Washington
Distribution: RHEL
Posts: 174

Rep: Reputation: 16
Tigervnc not encrypting


Trying to establish encryption on Tigervnc connection using TLS with x509.
Mostly what I've done is taken from https://github-wiki-see.page/m/Tiger...our-connection

Tiger vncserver is on a RHEL8.7 host and vncviewer is on my Windows10 laptop.

Created a self signed certifiacte on the server using openssl. The vncserver is managed using systemctl and I've had no problems when connecting without encryption. systemctl gets its parameters from /etc/tigervnc/vncserver-config-mandatory
The file's contents look like this:
Code:
session=gnome
#securitytypes=vncauth,tlsvnc
securitytypes=x509vnc,vncauth
x509key=/root/certs/vnc-server-private.pem
x509cert=/root/certs/vnc-server.pem
On the vncviewer side when trying to connect with encryption it returns..
Code:
Authentication failure: Server failed to initialize TLS session
The security tab in the viewer has "TLS with x509 cert" checked and the name of the public cert. That cert is in the same folder as where the exacutable is located.

Chris
 
Old 02-15-2023, 05:15 PM   #2
Corrado
Member
 
Registered: Aug 2004
Location: Washington
Distribution: RHEL
Posts: 174

Original Poster
Rep: Reputation: 16
Thumbs up

Soon after I posted this I found the solution. Key and cert weren't able to be accessed on the server. Moving them into an area where they can be read by all solved things. Connection encrypts.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Tigervnc-1.12.0 log - warnings Could not resolve keysym zdolar Slackware 1 03-03-2022 06:25 AM
tigervnc does not work across different computer, but ok within the same computer centguy Linux - Networking 4 07-31-2014 03:30 AM
Mandriva 2010.1 TigerVNC setup msdobrescu Linux - Networking 2 07-19-2010 11:13 PM
Anyone got a slackbuild/package for TigerVNC? (Not TightVNC!) uppman Slackware 2 04-16-2010 06:42 AM
TigerVNC in Fedora 12 on PC without monitor kuzja_21 Linux - Newbie 10 01-18-2010 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration