monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
8.98k stars 3.11k forks source link

CLI wallet RPC SSL with passphrase hangs on "Enter PEM pass phrase" #6778

Open garlicgambit opened 4 years ago

garlicgambit commented 4 years ago

If you instruct the CLI wallet to use a SSL key with a passphrase for the RPC connection to the daemon it will hang on: Enter PEM pass phrase.

To reproduce you need create a SSL private key and certificate with a passphrase:
./monero-gen-ssl-cert --private-key-filename privatekey.pem --certificate-filename certificate.pem --prompt-for-passphrase

Open the monero wallet with the following command:
./monero-wallet-cli --daemon-ssl-private-key privatekey.pem --daemon-ssl-certificate certificate.pem

skironDotNet commented 4 years ago

So far the only way it works is if you generate ssl cert without passphrase, so don't use --prompt-for-passphrase or --passphrase. There is no way to pass ssl priv key passphrase to neither monerod or monero-wallet-cli

garlicgambit commented 4 years ago

@skironDotNet, the monerod daemon will work when a SSL key is configured with a passphrase.