Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question - Encrypted key for keypair authentication #248

Closed
patilpankaj212 opened this issue Aug 5, 2019 · 2 comments
Closed

Question - Encrypted key for keypair authentication #248

patilpankaj212 opened this issue Aug 5, 2019 · 2 comments

Comments

@patilpankaj212
Copy link

Is encrypted key supported for keypair authentication?

When I used "https://github.com/snowflakedb/gosnowflake/blob/master/rsa-2048-private-key.p8.enc" for testing purpose using code here "https://github.com/snowflakedb/gosnowflake/blob/master/priv_key_test.go" I am getting below error:

asn1: structure error: tags don't match (16 vs {class:1 tag:19 length:97 isCompound:false}) {optional:false explicit:false application:false private:false defaultValue: tag: stringType:0 timeType:0 set:false omitEmpty:false} pkcs8 @2

@smtakeda
Copy link
Contributor

smtakeda commented Aug 5, 2019

I don't think we support it today.
It would requires a passphrase parameter to decrypt a private key file.

@patilpankaj212
Copy link
Author

Thanks @smtakeda. I found below issue on golang:

golang/go#8860

It says that go doesn't have support for parsing encrypted PKCS8 private keys. I think this is the cause I got that error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants