NAME

vnckeygen - generate a secure key for encrypted VNC sessions  

SYNOPSIS

vnckeygen [options]  

DESCRIPTION

vnckeygen generates a secure key and stores it in $HOME/.vnc/private.key. This key is used by both the server and viewer applications to encrypt VNC sessions when the RA2 security type is used, or to encrypt passwords when the RA2ne security type is used.

Generating a secure key is a computationally expensive operation and the probabilistic techniques used make it impossible to predict how long it will take. By default, vnckeygen prints an indication of its progress to stdout, although this can be supressed using the -q option.  

OPTIONS

vnckeygen accepts the following command-line options:
-f
Generate a new secure key even if a valid key already exists. Note that if a server's secure key is replaced, then any viewers that have previously connected to it will recognise this and will issue a warning to the user.
-q
Do not display the progress of the key generation. Without this option, vnckeygen prints a dot (.) for each number it considers for each of the two secure key components, p and q.
RSA_Private_Key_File=file
Save the generated key to file (default $HOME/.vnc/private.key).
RSA_Modulus_Bits=bits
Generate a private key of length bits (default 2048).
 

NOTES

vncviewer and vncserver will automatically generate a secure key when run by a user that does not already have one. However, you will need to run vnckeygen explicitly if you need to run Xvnc or x0vncserver. Encrypted connections (using the RA2 and RA2ne security types) are not possible if no private key exists.  

FILES

$HOME/.vnc/private.key
The secure key.
 

SEE ALSO

vncserver(1), vncviewer(1), vncconfig(1), vncpasswd(1), vnclicense(1), Xvnc(1), x0vncserver(1)
http://www.realvnc.com  

AUTHOR

RealVNC Ltd.