# Liquibase-Snowflake Connectivity POC - Key-pair authentication issue 

**URL:** <https://forum.liquibase.org/t/liquibase-snowflake-connectivity-poc-key-pair-authentication-issue/10648>\
**Category:** Uncategorized\
**Created:** [September 10, 2025, 4:54pm UTC](https://forum.liquibase.org/t/liquibase-snowflake-connectivity-poc-key-pair-authentication-issue/10648 "2025-09-10T16:54:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nesca](https://avatars.discourse-cdn.com/v4/letter/n/2acd7d/32.png) [@nesca](https://forum.liquibase.org/u/nesca)\
**Post date:** [September 10, 2025, 4:54pm UTC](https://forum.liquibase.org/t/liquibase-snowflake-connectivity-poc-key-pair-authentication-issue/10648/1 "2025-09-10T16:54:23Z")

</div>

I am establishing the connectivity between snowflake-liquibase using private - public key method.  
its working well with un-encrypted keys however facing follwoing issue with encrypted keys.

Unexpected error running Liquibase: Connection could not be created to jdbc:snowflake:\<\< account \>\>.snowflakecomputing.com/?schema=\<\<my\_schema\>\>&db=\<\< my-db\>\> &warehouse=\<\< my-wh\>\>&username=_ **&private\_key\_file=** _&private\_key\_pwd=\<\< passphrase\>\> with driver net.snowflake.client.jdbc.SnowflakeDriver. Private key provided is invalid or not supported: rsa\_key.p8: java.security.InvalidKeyException: Unable to decode key

Liquibase Version: 4.25.0

I am generating keys using -  
openssl genrsa 2048 | openssl pkcs8 -topk8 -v2 des3 -inform PEM -out rsa\_key.p8  
openssl rsa -in rsa\_key.p8 -pubout -out rsa\_key.pub

Can someone please guide me how to resolve abov issue?
