Can I generate CSRs on one system for multiple Domains?

DanRaposo
DanRaposo used Ask the Experts™
on
I need to generate a CSR for two separate domains.  They will be wildcard certificates.  Can I do them on the same system as long as I enter all the information correctly?  Or does the system need to be already associated with that Domain for it to work properly  My inclination is that I will be fine doing it on one system.

Example

Server1.mydomain.com
generate a CSR for  
          mynewdomain.com
          anothernewdomain.com


This is a redhat system.

Thank You


Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
You should be able to create as many csr's as you want.   What tool are you using for creating the csr's?  If you're using openssl, then you should have the option to store the keys and the csrs separately for each csr, under separate file names.

Author

Commented:
which packages do I need to install?  I have

openssl-devel-0.9.8e-7.el5
mod_ssl-2.2.3-22.el5
openssl-0.9.8e-7.el5


But I can't find /usr/sbin/sslgenrsa

Commented:
You don't have the right version of redhat that includes sslgenrsa... however, just use openssl directly:
The files below are examples (/etc/httpd/conf/server.key and /etc/httpd/conf/server.csr) can be name you'd like.  

Eventually the key files and the cert that you get back from the CA need to put in the proper place for your website configuration.  Don't loose the key files, nor mix them up.   The cert won't work without the matching keys.

Here we're generating server public and private keys, and storing them in /etc/httpd/conf/server.key
/usr/bin/openssl genrsa -rand /dev/urandom -out /etc/httpd/conf/server.key 1024

Here we're requesting the csr, using the previous server key, and putting the request in /etc/httpd/conf/server.csr
/usr/bin/openssl req -new -key /etc/httpd/conf/server.key -out /etc/httpd/conf/server.csr

Author

Commented:
Great work .. thank you!!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial