Documentation Index
Fetch the complete documentation index at: https://mintlify.com/rstudio/rskey/llms.txt
Use this file to discover all available pages before exploring further.
rskey generate creates a new secret key compatible with Posit Connect and Package Manager. The key is a sequence of 512 hex-encoded, securely-generated random bytes written to stdout by default, or to a file when you supply -o. Use this command whenever you need to provision a fresh key — for example, during initial server setup or after a key rotation.
Synopsis
Flags
Write the generated key to this file path instead of stdout. The file is
created with permissions
0600 (readable only by the owning user).Examples
When you use
-o, the file is written with mode 0600. Shell redirection
(>) does not set permissions automatically — set them separately with
chmod 600 <file> if needed.rskey generate is functionally equivalent to openssl rand -hex 512.
Both produce 512 hex-encoded random bytes suitable for use as a Connect or
Package Manager secret key.