Thursday, June 30, 2011

Generate a SSL certificate request for Multidomains

Recently I had a need to have a SSL certificate which should be used in multiple domains. When I search on that I found that it can be done using Unified Communications Certificates (UUC) :

This is how I generated a multidomain certificate request :

1. Open openssl.cnf
2. Make sure following line are there in that file :

[req]
req_extensions = v3_req

[v3_req]
subjectAltName = @alt_names

[alt_names]
DNS.1 = example.com
DNS.2 = hello.example.com
DNS.3 = testing.com


You should add your domains as given in under [alt_names]

3. Create a private key

4. generate your certificate requests by providing required information

Thats all! you are done!!!

Reference : http://playnice.ly/blog/2011/01/03/multi-domain-ucc-ssl-certificates-on-nginx-with-1-ip-address/



You can make sure by
openssl req -text -noout -in ssl.csr

Under the alternative section you can find your all the domains listed.

3 comments:

Sarah Whitehead said...

Thanks for the code to toy with! I've been wanting to mess around with mine for quite a while now =)

ssl certificates

Anonymous said...

Its clean and straight forward guidance about self signed certifiable. Being Platinum Certificate Authority that we wish, your short guidance about self signed certificate guidance will help to other SSL users.



- Thanks Cheap SSL Certificate

Admin B said...

I loved the article. It shared light on all things web hosting, especially for Web hosting South Africa. You should also see the web design johannesburg blog which write more about hosting and
Wordpress blog