57 Words

Extract the RSA public key from a private key

# write the public key to a file (works for RSA, EC and Ed25519 keys)
openssl pkey -in domain.tld.key -pubout -out domain.tld.pubkey

# show the public key
openssl pkey -in domain.tld.pubkey -pubin -noout -text

# the same with the RSA-only command
openssl rsa -in domain.tld.key -pubout -out domain.tld.pubkey