Table of Contents

Search

  1. Preface
  2. Part 1: Getting Started with Snowflake Data Cloud Connector
  3. Part 2: Data Integration with Snowflake Data Cloud Connector
  4. Part 3: SQL ELT with Snowflake Data Cloud Connector
  5. Appendix A: Data type reference
  6. Appendix B: Additional runtime configurations
  7. Appendix C: Upgrading to Snowflake Data Cloud Connector

Snowflake Data Cloud Connector

Snowflake Data Cloud Connector

Generate the public and private key

Generate the public and private key

Before you generate the public and private key for key pair authentication, you need to have the security admin role or higher in Snowflake.
  1. From the OpenSSL command line, generate a private key:
    • To generate a decrypted private key, run the following command, and provide a passphrase when prompted:
      $ openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt
    • To generate an encrypted private key, run the following command, and provide a passphrase when prompted:
      $ openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8
    The passphrase is used to encrypt the private key file while connecting to Snowflake.
  2. Generate the public key. Run the following command and specify the encrypted private key located in the file, for example,
    rsa_key.p8
    :
    openssl rsa -in rsa_key.p8 -pubout -out rsa_key.pub
  3. Copy the public and private key files in a directory that the Secure Agent can access.
    For example,
    C:\Program Files\Informatica Cloud Secure Agent\apps\Data_Integration_Server\data\snowflake\rsa_key.p8
    You require the path details when you configure the Snowflake connection.
  4. In Snowflake, assign the public key to the Snowflake user using the ALTER USER command:
    alter user <user> set rsa_public_key='<content of the public key after removing the header and footer lines>';
    For example,
    alter user jsmith set rsa_public_key='MIIXBIjABCdef...';
For more information about configuring a key pair authentication for Snowflake, see the Snowflake documentation.

0 COMMENTS

We’d like to hear from you!