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 is a drop-in replacement for Posit Connect’s built-in rscadmin configure --encrypt-config-value command. You can use it to generate secret keys and encrypt sensitive configuration values — such as database passwords — without needing a Connect installation or license on the machine where you run it. This makes it particularly useful for provisioning secrets in automated and containerized deployments.
Generate a key
Generate the key file
Write a new 512-byte hex-encoded key directly to the Connect key path:Restrict the file so only the Connect process can read it:
Encrypt a configuration value
Run For scripting or batch use, pipe line-separated values on stdin instead:
rskey encrypt interactively. It prompts you to type the value twice without echoing it to the terminal:FIPS mode
Connect 2022.03.0 and later supports AES-256-GCM encryption, an Approved Security Function under FIPS 140-3. To use it, pass--mode=fips when encrypting:
rskey decrypt does not require --mode=fips. The algorithm is encoded in the ciphertext version byte and detected automatically.Verify a key with its fingerprint
Therskey fingerprint command prints a SHA-256 fingerprint that identifies the key in Connect log messages and API responses. Use it to confirm the correct key is in place without exposing the key material: