0

I have an openssl public key file. I converted it to PEM format for azure.

However, when i try to create an azure vm with it, it gives me this msg:

The certificate is in an invalid format. X.509 standard format in a .cer or .pem file is supported.

What am i doing wrong?

Update:
This is how the top line of my .pem file looks like:

-----BEGIN RSA PUBLIC KEY-----
pdeva
  • 2,447
  • 5
  • 18
  • 15
  • How is your cert looking like? (Don't post the full, only the first line with `--- BEGIN CERTIFICATE..` and the type of characters used. – sebix Mar 02 '15 at 07:05
  • @sebix updated post with first line – pdeva Mar 02 '15 at 07:42
  • Thats a public key, not a certificate ;) – sebix Mar 02 '15 at 10:44
  • @sebix ok so am i supposed to put public key inside an x509? what is the command for that? – pdeva Mar 02 '15 at 15:08
  • You have to create a certificate e.g. OpenSSL has a parameter `-key` for usage of an existing (You also need the matching private key to do that). – sebix Mar 02 '15 at 16:06

0 Answers0