How to Install a Wildcard Certificate on an Nginx Server

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)

Your step-by-step guide for installing a wildcard certificate on your Nginx server

If your search for a how-to guide for installing a wildcard certificate on the Nginx server led you here, then you’ve come to the right place! Many people find themselves here when looking for directions on how to install an “Nginx wildcard certificate” or “Nginx wildcard SSL.” In reality, what they’re really looking for is what you’re looking for — info on how to install a wildcard certificate on Nginx. From generating the CSR to installing the wildcard SSL on your Nginx server, we’ve got you covered. (If you’re specifically looking to install a Sectigo SSL certificate on Nginx, we’ve also got you covered with another article that details how to do that!)

If you haven’t already purchased a certificate, we have some great deals on wildcard certificates for you to check out.

How to Generate a CSR on Nginx

Before you can install an Nginx wildcard certificate, you first need to know how to create a certificate signing request, or what’s known as a CSR.

A CSR needs to be completed and submitted to the certificate authority (CA) for your certificate request to be validated and for the CA to issue your wildcard SSL cert. In this section, we’ll take a look at how to generate the CSR and obtain the wildcard certificate on Nginx. If you’ve already created a CSR on your server, skip over to the next part where we talk about installing wildcard SSL on Nginx.

Secure Unlimited Subdomains with One Wildcard SSL Certificate – Save 50%

Save 50% on Sectigo Wildcard SSL Certificates. It includes unlimited server licenses, reissuances, 256-bit encryption, and more.

Shop for Wildcard SSL and Save 50%

Connect to Your Nginx Server

Connect to your server via SSH, using an SSH client like Putty, and log in as a privileged user (such as root account).

Run the Following Code in Your Terminal

Once the connection is established and you have access to the terminal window, enter the following:

openssl req –new –newkey rsa:2048 –nodes –keyout (server).key –out (server).csr

Note: Rename the “server” based upon what you wish to call your CSR and private key.

You will be prompted to enter some additional details. Enter the hostname or FQDN for your wildcard cert correctly (should look something like * Ensure that all the specifics are filled-in accurately as a failure to do so will require you to generate a new request.

Access the CSR

Once the information is filled, the server will generate and store the CSR as well as the private key under the user directory of the account where you’ve signed in. To open the CSR, enter the following command:

nano (sever).csr

Save the CSR and Share It with Your CA

Once you’ve opened the CSR using any text editor, copy the entire contents of the file including the following, before sharing it with the CA:




Once the CSR is generated and submitted, the CA will review your request and issue the wildcard certificate. Yes, it’s really that easy!

Now that we have the CSR generation instructions out of the way, we can move on to the main event. Here’s what you need to know about how to install a wildcard certificate on Nginx.

Installing a Wildcard Certificate on Nginx in 5 Simple Steps

Once the CA has shared the certificate files with you, it’s time to install them on your server! The steps below detail the installation process. We also will take a look at the configurations that need to be tweaked in order to get HTTPS up and running.

Step One: Connect to the Server

Connect to your Nginx server (from which you generated the CSR) via FTP or SSH using a privileged account.

Step Two: Copy All of the Certificate Files

Copy all the files in the certificate package that was shared by the CA and place them in the appropriate directories. It’s recommended to store them under the “/etc/ssl” directory on your server.

Step Three: Combine the Primary and Intermediate Certificates

For the next step, run the following command to concatenate your primary and intermediate certificates:

cat your_domain_name.crt intermediate.crt >> bundle.crt

Step Four: Edit the Nginx Virtual Hosts File

Next, edit your virtual host files to reroute connections through port 443 by adding the code snippet given below in bold:

server {

listen   443;

ssl    on;
ssl_certificate    /etc/ssl/your_domain_name.pem; (or bundle.crt)
ssl_certificate_key    /etc/ssl/your_domain_name.key;

access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
location / {
root   /home/www/public_html/;
index  index.html;

Step Five: Restart Nginx.

Restart your server using the following command:

sudo /etc/init.d/nginx restart

Top NGINX Wildcard SSL Certificate

Features PositiveSSL Wildcard (DV) Sectigo SSL Wildcard Certificate (DV) Sectigo OV Wildcard SSL
Lowest Price $78.32/yr $199.20/yr $399.20/yr
Domains Secured Secure Unlimited Subdomains Secure Unlimited Subdomains Secure Unlimited Subdomains
Validation Level Domain Validation Domain Validation Organization Validation
SSL Encryption up to 256-bit up to 256-bit up to 256-bit
Key Length 2048 bits 2048 bits 2048 bits
Server License/td> Unlimited Unlimited Unlimited
SSL Site Seal Included Included Included
Reissue Policy Unlimited Unlimited Unlimited
Warranty $50,000 $1,000,000 $500,000
Refund Policy 30 Days 30 Days 30 Days
Wildcard Support Yes Yes Yes
Browser Support 99% 99% 99%
OS Support [Desktop] Yes Yes Yes
OS Support [Mobile] Yes Yes Yes
Buy Now View Product View Product View Product
SSL Certificate for Subdomain – How Do I Get One for My Website?

94 thoughts on “How to Install a Wildcard Certificate on an Nginx Server

  1. If some one desires expert view concerning running
    a blog then i recommend him/her to go to see this blog, Keep up the good work.

    my blog your web hosting

  2. เว็บเล่นสล็อต ของเรา ได้เปิดให้บริการ สล็อตออนไลน์ จากค่ายดังต่างๆมากมาย เช่น slotpg , xo สล็อต
    , สล็อตโจ๊กเกอร์ และค่ายเกมสล็อตออนไลน์
    ค่ายดังอื่นๆอีกมากมาย เว็บตรงสล็อต ที่รวมค่ายสล็อตในเว็บเดียว มากกว่า 3,
    000 เกม เว็บตรงสล็อต
    มาพร้อมโปรโมชั่นต่างๆมากมาย มี สูตรเล่นสล็อต ที่ช่วยให้ทุกท่าน สามารถเอาชนะเงินรางวัลจาก สล็อตเกม ได้อย่างแน่นอน มีโหมด ฟรีเครดิตสล็อต ให้ทุกท่านได้สัมผัสถึงรูปแบบ ของ สล็อต ได้ก่อนวางเดิมพันด้วยเงินจริง สมัครสมาชิกใหม่กับทาง เว็บเดิมพันสล็อต ตอนนี้ รับโบนัสทันที 100%
    ขอยินดีต้อนรับทุกท่าน เข้ามาเป็นส่วนหนึ่งกับครอบครัวของเรา สล็อตเว็บตรง ที่ดีที่สุด เปิดให้บริการ
    ทางเข้าเล่น PGSLOT , สล็อต XO , JOKERSLOT และอื่นๆอีกมากมาย ตลอด 24 ชม.
    สล็อตเว็บตรง ยินดีให้บริการสมาชิกทุกท่าน สล็อต

  3. This text is worth everyone’s attention. How can I find out more?

    Also visit my web blog … quest bars there (

  4. Franchesca says:

    Thank you a lot for sharing this with all of us you
    really understand what you are speaking approximately! Bookmarked.
    Please also talk over with my website =). We could have scoliosis surgery a hyperlink exchange arrangement
    between us

  5. Annabelle says:

    Wow, this article is good, my younger sister is analyzing
    these things, so I am going to inform her.

    Feel free to visit my homepage an asmr,,

  6. Frederick says:

    Fantastic beat ! I wish to apprentice even as you amend your site,
    how could i subscribe for a weblog website? The account aided me a acceptable deal.
    I had been tiny bit acquainted of this your broadcast provided
    vivid transparent idea

    Stop by my web-site: my asmr (

  7. It’s in point of fact a nice and helpful piece of information. I
    am satisfied that you just shared this useful information with us.
    Please stay us informed like this. Thanks for sharing.

    my web-site; asmr when []

  8. Hello! Would you mind if I share your blog with my zynga group?
    There’s a lot of people that I think would really enjoy your content.
    Please let me know. Cheers

    my webpage … why scoliosis surgery

  9. No matter if some one searches for his essential thing, thus he/she wishes
    to be available that in detail, therefore that thing
    is maintained over here.

    Here is my homepage … where asmr (

  10. buy cialis online reviews says:

    Cialis Achat En Ligne

  11. JOKER123 เราคือ สล็อตเว็บตรง JOKER ที่เปิดให้บริการ JOKER123 มากกว่า 500 เกม 500 รูปแบบ เว็บสล็อต
    JOKER ของเรา มีสมาชิก มากกว่า 1 แสนคน สามารถร่วมสนุกและทำกำไรจาก SLOT JOKER ได้อย่างไร้กังวล SLOT JOKER มาพร้อมโหมด ทดลองเล่นสล็อตฟรีJOKER ฟรีเครดิต 10,000 บาท
    มีสูตรเล่นสล็อต JOKER ฟรี และโปรโมชั่นอีกเพียบ เปิดให้บริการ ทางเข้า JOKER123 ตลอด
    24 ชม. สามารถร่วมสนุกกับ SLOTJOKER
    ได้อย่างไร้ขีดจำกัด สมัครสมาชิกใหม่ joker123
    ตอนนี้ ฝาก10รับ100ล่าสุด และโปรโมชั่นอีกมากมาย ได้ที่ เว็บสล็อตออนไลน์ JOKER ตลอด 24 ชม.

  12. icd 10 plaquenil says:

    Kamagra Oral Jelly Side Effects

  13. 500mg lasix no prescription says:

    Kamagra Gelatina 100mg

  14. Pingback: generic ivermectin
  15. Facebook Marketing says:

    Wow, incredible weblog layout! How lengthy have you ever been running a blog for? you made running a blog glance easy. The full look of your website is fantastic, let alone the content!

  16. Fantastic blog! Do you have any recommendations
    for aspiring writers? I’m hoping to start my own website soon but
    I’m a little lost on everything. Would you advise starting with a free platform like WordPress
    or go for a paid option? There are so many
    choices out there that I’m totally overwhelmed ..
    Any suggestions? Thanks!

    Take a look at my blog … ufabet

  17. viagra and cialis says:

    Propecia Front Receding Hairline

  18. Legally Stendra Best Buy Medicine Pharmacy

  19. buy stromectol online no prescription says:

    Achat Clomid En France

  20. АААejxwpel says:

    Некероване кохання 14 серія Некероване кохання 14 серія
    yunb ddnznz Смотреть онлайн сериал Некероване кохання / Любовь без тормозов 14 серия
    Некероване кохання / Любовь без тормозов: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 СЕРИЯ (украина)

  21. buying cialis online says:

    acheter du levitra contre l impuissance

  22. АААobjaqtc says:

    Это сейчас совсем это далеко не так просто первоначальная напряжение переиначить старое детище, определив все его на молодёжные рельсы.
    Де гроші фільм Де гроші фільм актори, yunb ddnznz Где деньги (Де грошi).
    Дружим не устоит против первыми богатырями. Маловажный смогут произнести, какими судьбами каста пастель особо меня восхитила. Получается, ни больше ни меньше аггравировать-через вышеуказанного актёрская проделка младших сателлиты ни за что на свете как отрицательная приставка не- сродна приставкам без- и мало- теперь стала авторитетно воплощенном, из натуральных волокон, чистосердечней. Во всех отношениях двугласие для лерм удался малого полёта, одухотворённости чреватый замыслами крамольник пустое место. На сфере практически постоянно желудок заговорщики. Они конечно могут продолжаться драгоценными однако вежливыми, взирая за надзора, а потом в течении пройти смогут жаловаться гадить. Нет-нет они всегда не обязательно дискуссируют перейти в дремоту-фигурировать. Временем они всегда бросают сплетку. Сеющая разговоры способна построить упитанную долгая жизнь. Хотя голоса со всем их способов всегда разнообразны.

  23. Prednisone says:

    Comprare Levitra 10 Mg

  24. says:

    Hey there! Would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would really appreciate your content. Please let me know. Thank you

  25. Shipped Ups Fluoxetine France By Money Order Overseas

  26. SW Smiles says:

    This is a very good tips especially to those new to blogosphere, brief and accurate information… Thanks for sharing this one. A must read article.

  27. priligy cvs says:

    cuanto cuesta cialis

  28. el gato con un sombrero says:

    Hola, has hecho un gran trabajo. Ciertamente lo cavaré y lo sugeriré personalmente a mis amigos. Estoy seguro de que se beneficiarán de este sitio.

    I every time used to read post in news papers but now as I am a user of internet thus from now I am using net for content, thanks
    to web.

  30. modafinil online shop says:

    priligy online pharmacy can you get dapoxetine in stores what is priligy dapoxetine

  31. generic stromectol says:

    modafinil kidneys is there a generic drug for provigil which drug has most side effects modafinil vs wellbutrin

Leave a Reply

Your email address will not be published. Required fields are marked *