Private Key Content
- Last Updated: February 11, 2025
- 1 minute read
- DataDirect Connectors
- ODBC
- Snowflake 8.0
- Documentation
Attribute
PrivateKeyContent (pkc)
Purpose
Specifies the content of a private key. It is used to authenticate to Snowflake when key-pair authentication is enabled (AuthenticationMethod=KeyPair).
Valid Values
String
where:
String
is the content of a private key.
Notes
-
When specifying private key content, use the following syntax:
- For encrypted private key content:
-----BEGIN ENCRYPTED PRIVATE KEY-----private key content-----END ENCRYPTED PRIVATE KEY----- - For unencrypted private key content:
-----BEGIN PRIVATE KEY-----private key content-----END PRIVATE KEY-----
- For encrypted private key content:
-
If the encryption schema you are using to generate the encrypted private keys is not compatible with the native encryption libraries of your JRE, the JRE will return an error. To resolve this issue, either generate encrypted private keys using an encryption schema that is compatible with your JRE or add a third-party Java cryptography library to your application (for example, Bouncy Castle) that supports the encryption schema you are using. For example, to add Bouncy Castle to your application, add the following line to the
java.securityfile:security.provider.n=org.bouncycastle.jce.provider.BouncyCastleProvider, and then add the Bouncy Castle jars to the classpath of your JRE. -
The private key is a confidential value. To prevent unauthorized access, this value must be securely maintained.
-
The private key content you specify must correspond to the content of the public key assigned to your Snowflake account.
Default Value
No default value