This section provides you the different authentication method used for Snowflake in Data Integrity Suite.
Choose the type of authorization from the drop-down menu. This determines how the system will authenticate your credentials.
| Field | Description |
|---|---|
| Authentication type |
Password: Use this option if you prefer to authenticate using a password.
|
Private Key (Unencrypted): Use this option if you prefer to authenticate using a private key that isn’t encrypted. Choose this only if you don’t need to protect the key with a password..
|
|
|
Private Key (Encrypted): Use this option if you prefer to authenticate using a private key.
|
Generate an encrypted private key
This section describes the procedure to generate an encrypted RSA key pair using OpenSSL and configure the public key for a Snowflake user to enable key-pair authentication. The private key is generated in PKCS#8 format and encrypted using PBE-SHA1-3DES.
- Open terminal and run the following command to generate
a 2048-bit RSA private key in PKCS#8 format, encrypted
using v1 PBE-SHA1-3DES.
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -v1 PBE-SHA1-3DES -out <file_name>Note: Ensure that the<file_name>is saved with a.p8extension. Example:rsa_key_encrypted.p8When this command is executed, OpenSSL prompts for an encryption password. This password is required to protect the private key and must be entered twice for confirmation. Upon successful execution, an encrypted private key file named
rsa_key_encrypted.p8is created. This file must be kept secure and should never be shared. - Set a password for the encrypted private key when prompted, and confirm it by entering the same password again at the verification prompt.
-
To extract the public key from the encrypted private key, use the following command:
During execution, OpenSSL prompts for the passphrase associated with the encrypted private key. After successful authentication, the corresponding public key is extracted and written to the fileopenssl rsa -in <file_name> -pubout -out rsa_key_public.pubrsa_key_public.pub. This public key can be safely shared and used for authentication configuration. -
After running the above command, you will have two files generated in the specified directory:
-
rsa_key_encrypted.p8(encrypted private key) -
rsa_key_public.pub(public key)
-
-
To associate the public key with a user in Snowflake, run the following command:
ALTER USER <your_username> SET RSA_PUBLIC_KEY='<base64_encoded_public_key>';