openssl rsa -in privkey.pem -pubout > key.pub
That writes the public key to key.pub
More Related Contents:
- Use RSA private key to generate public key? [closed]
- How can I transform between the two styles of public key format, one “BEGIN RSA PUBLIC KEY”, the other is “BEGIN PUBLIC KEY”
- Differences between “BEGIN RSA PRIVATE KEY” and “BEGIN PRIVATE KEY”
- Converting pfx to pem using openssl
- CMake not able to find OpenSSL library
- Converting PKCS#12 certificate into PEM using OpenSSL
- Difference between openSSL rsautl and dgst
- Verify a certificate chain using openssl verify
- Convert PEM traditional private key to PKCS8 private key
- Using OpenSSL what does “unable to write ‘random state'” mean?
- Multiple OpenSSL RSA signing methods produce different results
- OpenSSL Verify return code: 20 (unable to get local issuer certificate)
- How do I manage the error “OpenSSL v1.1.1 ssl_choose_client_version unsupported protocol”? [closed]
- Why is Apple Deprecating OpenSSL in MacOS 10.7 (Lion)? [closed]
- RSA: Get exponent and modulus given a public key
- Correct location of openssl.cnf file
- Programmatically Create X509 Certificate using OpenSSL
- How to generate an openSSL key using a passphrase from the command line?
- Convert pem key to ssh-rsa format
- How to save public key from a certificate in .pem format
- How to create public and private key with openssl?
- How to convert an ECDSA key to PEM format
- Unable to load Private Key. (PEM routines:PEM_read_bio:no start line:pem_lib.c:648:Expecting: ANY PRIVATE KEY) [closed]
- Creating a .p12 file
- How do I get Visual Studio Code to trust our self-signed proxy certificate?
- When was TLS 1.2 support added to OpenSSL?
- Cross Compile OpenSSH for ARM
- How to make browser trust localhost SSL certificate? [closed]
- How to find out the path for OpenSSL trusted certificates?
- What is CA certificate, and why do we need it?