Sep 12, 2014 Create a Private Key. Use this command to create a password-protected, 2048-bit private key (domain.key): openssl genrsa -des3 -out domain.key 2048 Enter a password when prompted to complete the process. Verify a Private Key. Use this command to check that a private key (domain.key) is a valid key: openssl rsa -check -in domain.key. If your private key is encrypted, you will be prompted for its pass phrase. Generate the CSR code and Private key for your certificate by running this command: openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out servercsr.txt Note: server.key and servercsr.txt are the Private key and the CSR code files. OpenSSL will clearly explain the nature of the key block with a -BEGIN RSA PRIVATE KEY-or -BEGIN PUBLIC KEY-. You can use less to inspect each of your two files in turn: less private.pem to verify that it starts with a -BEGIN RSA PRIVATE KEY. Aug 05, 2019 Open a command prompt, change the directory to your folder with the configuration file and generate the private key for the certificate: openssl genrsa -out testCA.key 2048. This will create a file named testCA.key that contains the private key. This will be used with the next command to generate your root certificate: openssl req -x509 -new -nodes -key testCA.key -sha256 -days 365 -out testCA.crt -config localhost.cnf -extensions v3ca -subj '/CN=SocketTools Test CA'. That means it would be spendable as long as I still have the key I generated. You changed the title of my question so that it looks like I want to hash the private key and then try to turn that into a bitcoin address. Why would I want to do that? I'm changing the title to 'How can I convert a SHA256 hash into a Bitcoin base58 private key?'
Common OpenSSL Commands with Keys and Certificates
Generate RSA private key with certificate in a single command
Generate Certificate Signing Request (CSR) from private key with passphrase
Generate RSA private key (2048 bit)
Generate a Certificate Signing Request (CSR)
Generate RSA private key (2048 bit) and a Certificate Signing Request (CSR) with a single command
![Generate Generate](/uploads/1/2/6/0/126058479/767200339.png)