secret
secret copied to clipboard
Non-interactive functionality?
Is it possible to decrypt the secret in non-interactive sessions (i.e., Rscript SomeFile.R from UNIX-based OS terminal)?
The get_secret() function requieres the passphrase for privatekey. So, when running the Rscript from CMD, it stops with the error Access denied to secret ‘somesecret’
I think it should already work for private keys without a password.
For private keys with passwords, we would need to pass the password down to openssl:::read_key. Would you like to support a PR for this?
I'd like to support, but my coding capacity is rather poor. Anyway, I'll do the research and if I find a solution, I'll pull it.
Thanks! No pressure, and no rush.