nr_gen_encryption_keys

The nr_gen_encryption_keys utility generates a pair of RSA encryption keys, one public and one private. Using the utility is not required. You can use any means available to generate RSA encryption keys. (RSA refers to an algorithm for public-key cryptography, and to Rivest, Shamir, and Adleman, the cryptographers who first described it.)

The utility is located in: %SWISRSDK%\amd64\bin

Usage

nr_gen_encryption_keys -pub publicKeyFile -prv privateKeyFile 
       [-pass privateKeyPassword] 
       [-len keyLength] 

Options

-pub publicKeyFile

Specifies a filename for the output public key. The value can include an absolute or relative path.

-prv privateKeyFile

Specifies a filename for the output private key. The value can include an absolute or relative path.

-pass privateKeyPassword

Specifies a password for accessing the output private key. When you specify a password, the utility uses OpenSSL to encrypt the privateKeyFile, and the password is required for decryption.

-len keyLength

A value between 1024 (default) and 4096. Typical values are 1024, 2048, and 4096. Larger values improve security, with a small cost in CPU and slight increase of the privateKeyFile file size.

Example

nr_gen_encryption_keys -pub myPublicKey -prv mySecretKey 
   -pass abracadabra

This example creates two encryption key files: myPublicKey and mySecretKey. It encrypts the mySecretKey file with a password (abracadabra) required for future decryption.