Unencrypted Private Key:
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt
Encrypted Private Key:
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
ALTER USER TELESKOPE_USER SET RSA_PUBLIC_KEY='MIIBIjANBgkqh...';
Exclude the public key delimiters in the SQL statement.
Retrieve the User's Public Key Fingerprint (In Snowflake) and note the output:
DESC USER TELESKOPE_USER ->> SELECT SUBSTR( (SELECT "value" FROM $1 WHERE "property" = 'RSA_PUBLIC_KEY_FP'), LEN('SHA256:') + 1) AS key;
Run the following command on command line:
openssl rsa -pubin -in rsa_key.pub -outform DER | openssl dgst -sha256 -binary | openssl enc -base64
Compare the outputs. If both outputs match, the user correctly configured their public key. Go back to the Enrollment step on the previous page to complete enrollment.
Last updated 6 months ago
Was this helpful?