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?