How to Create Certificates for Azure Cloud
This section shows how to create a self-signed certificate. To create a certificate signed by CA, refer to the OpenSSL documentation.
- Download and install Microsoft Visual C++ 2008 Redistributable Package (x86) from http://www.microsoft.com/en-us/download/details.aspx?id=29.
- Download and install the latest version of OpenSSL from http://slproweb.com/products/Win32OpenSSL.html. Use all of the default settings.
Run the following commands:
- set OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg
- cd C:\OpenSSL-Win32\bin
- openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout myazurekey.pem -out myazurekey.pem
Enter the required information. When prompted, press Enter to confirm each operation. A file titled myazurekey.pem is created in the C:\OpenSSL-Win32\bin folder.
Run the following command:
openssl x509 -inform PEM -in myazurekey.pem -outform DER -out myazurekey.cer.
The myazurekey.cer file is created in the C:\OpenSSL-Win32\bin folder.
Use the Azure Console > Settings > Manage Certificates view to upload the myazurekey.cer file to Azure.