This page describes the authentication methods used for Snowflake in Data Integrity Suite.
Choose the authorization type from the dropdown menu. This determines how your credentials are authenticated.
| Field | Description |
|---|---|
| Password |
Use this option if you prefer to authenticate using a password.
Warning: This authentication type is deprecated.
|
| Private Key (Unencrypted) |
Use this option if you prefer to authenticate using a private key that is not encrypted. Choose this only if you do not need to protect the key with a password.
|
| Private Key (Encrypted) |
Use this option to authenticate with a private key that is protected by a passphrase.
|
Generate an encrypted private key
Use the following procedure to generate an encrypted RSA key pair using OpenSSL and configure the public key for a Snowflake account 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. -
The command generates two files in the specified directory:
-
rsa_key_encrypted.p8(encrypted private key) -
rsa_key_public.pub(public key)
-
-
To associate the public key with your Snowflake account, run the following command:
ALTER USER <your_username> SET RSA_PUBLIC_KEY='<base64_encoded_public_key>';Replace the placeholder values with your Snowflake username and encoded public key.