We're trying to implement some functionality of a Web-Service from one of our partners. Now, the content which is beeing transmitted, should be encrypted with a public key, which we have to provide.
The security-specification says that the public-certificate has to be X.509 standard. Doesn't X.509 rely on the private / public key method? Because I only get one .pem file, containing a private key, and a certificate, but no public key, using the following command:
openssl req -new -x509 -days 365 -nodes -out ./cert.pem -keyout ./cert.pem
Do I have to modify the command in order to create a private and a public key?