Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a csr file for azure web app

I need to create a csr file to give it to someone.

The csr file is for a SSL certificate for a azure web app.

When I google I find inconsistent information about where to generate the csr file.

Some sources say: I have to create the csr file on the server the web app is running.

In my case the server on azure is unknown. I can not run anything there...

Or is it ok to create the csr on my local pc with all company data + the subject filled out with the custom domain?

like image 549
HelloWorld Avatar asked Feb 15 '16 12:02

HelloWorld


1 Answers

openssl is installed in the console, you can generate the files there. You will have to specify all of the settings necessary in the original command to openssl because it is supposed to prompt you with questions but it doesn't work at present. So something like this:

openssl req -new -newkey rsa:2048 -nodes -out yoursite_com.csr -keyout yoursite_com.key -subj "/C=US/ST=California/L=San Francisco/O=Your Site Inc./OU=Engineering/CN=yoursite.com"

once you have your csr you can't open it from the console, you actually have to use Kudu (click on Advanced Tools) to open the file and copy the contents.

like image 130
Peter W Avatar answered Sep 29 '22 19:09

Peter W