Private Key File
- Last Updated: February 11, 2025
- 1 minute read
- DataDirect Connectors
- ODBC
- Snowflake 8.0
- Documentation
Attribute
PrivateKeyFile (pkf)
Purpose
Specifies the absolute path to the private key file used to authenticate to Snowflake when key-pair authentication is enabled (AuthenticationMethod=KeyPair).
Valid Values
String
where:
String
is the the absolute path to the private key file.
Notes
-
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 contained in the private key file you specify must correspond to the public key assigned to your Snowflake account.
Default Value
No default value