Open SSL

How do you remove a password from a .key file using OpenSSL.

openssl rsa -in original.key -out new.key

You will be prompted for your original password, so enter that first then the new key will be written afterwards.

Note you could have the -in and -out parameters be the same but if you get it wrong you could mess up your key.

Also note that if you actually want to change your password you don’t need to remove the original first just use:

openssl rsa -aes256 -in original.key -out new.key

That will prompt you for the original key.

Then it will prompt for the new key (twice)


For PKCS#7 format keys it’s

openssl pkey

Also some OpenSSL commands require -nodes to explicitly disable the encryption


Nord VPN
60% off Nord VPN
Coinbase - Getty Images - 1234552839
Coinbase – Crypto Currency – Sign up with this link and get $10 free?! Buy/sell/exchange crypto, and use their ATM card to access your cash easily!
Chase Sapphire Preferred - Travel Points
NordPass - Password Manager - CJ Banner
https://www.dpbolvw.net/click-100604079-15345170
Binance Cryptowallet - Buy/Sell
Binance Blockchain
Amazon - Daily Deals
Amazon’s Daily Deals!
Your favorite restaurants are delivered to your front door! Grubhub!
Game Fly
Game Fly Video Game Rentals!

Please enter CoinGecko Free Api Key to get this plugin works.