[Ethereum] How to extract private keys from Ethereum Wallet?


How to extract private key of an account from Ethereum Wallet on Linux? Please specify the exact filesystem locations.

I need private keys both for the main network and for the Ropsten test network.

Best Answer

The keystore is encrypted and default location in Linux is ~/.ethereum/keystore.

You can use https://www.myetherwallet.com to get the raw private key. If you want to script this, you can for instance use node.js ethereumjs-wallet library.

Also see How do I get the raw private key from my Mist keystore file?