Normally I use a pem
file to login into my ec2 instance via
ssh -i key.pem
Now, in Azure, their requirement during instance creation is
UPLOAD AN SSH KEY OR PROVIDE A PASSWORD FOR AUTHENTICATION
You can upload an X.509 certificate (in .cer or .pem format) or provide your password to
sign in to a virtual machine.
So how to convert the pem to X.509 certificate?