Nginx: Instructions for OCSP Stapling (2024)

Instructions for Enabling OCSP Stapling on Your Nginx Server

Nginx: Instructions for OCSP Stapling (1)

For more information about the Online Certificate Status Protocol (OCSP) and the benefits of OCSP stapling, see Enable OCSP Stapling on Your Server.

Nginx: How to Enable OCSP Stapling

These instructions were created using Nginx 1.6.2. Depending on which version of Nginx you are using, you may need to modify these instructions accordingly.

  1. Check your version of Nginx

    Nginx supports OCSP stapling in 1.3.7+.

    To see which version of Nginx you are running, use following command:

    nginx -v

  2. Check if OCSP stapling is enabled.

    1. To see if OCSP stapling is enabled, do one of the following:

    2. Check that the Intermediate Certificate is properly installed.

      Before you can enable OCSP stapling on your Nginx server, the Intermediate Certificate must be properly installed.

      To see if the intermediate certificate is properly installed, go to https://www.digicert.com/help and in the Server Address box, type in your server address (i.e. www.digicert.com).

      Under Certificate Name matches…, you should see your Server Certificate and the Intermediate Certificate.

      Nginx: Instructions for OCSP Stapling (4)

    3. If the server is not sending the required intermediate certificate, you will need to configure it in the “ssl_certificate” line of your SSL configuration. See Nginx SSL Certificate Installation.

      Nginx: Instructions for OCSP Stapling (5)

  3. Verify the Nginx server’s connection to the OCSP server.

    Enter the following command:

    curl ocsp.digicert.com/ping.html

    You should receive the “You have successfully reached the DigiCert OCSP Service” message.

    If you don’t have curl installed, try using the wget command:

    wget ocsp.digicert.com/ping.html

    If it downloads the page, you are connected. To view the contents of the page, enter the following command:

    cat ping.html

    You should receive the “You have successfully reached the DigiCert OCSP Service” message.

  4. Configure your Nginx server to use OCSP Stapling.

    Use the following instruction to enable OCSP stapling on your Nginx server after verifying that it supports OSCP stapling and can connect to the OCSP server.

    1. Edit your site’s SSL configuration file.

      Add the following directives INSIDE the “server { }” block:

      ssl_stapling on;
      ssl_stapling_verify on;

      For example:

      server
      {

      listen 443 ssl;
      ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

      ssl_certificate /etc/ssl/bundle.crt;
      ssl_certificate_key /etc/ssl/your_domain_name.key;

      ssl_stapling on;
      ssl_stapling_verify on;

      }

    2. (Optional) Add a DNS resolver for stapling.

      Add a DNS resolver for stapling so that the resolver defaults to Google’s DNS.

      resolver 8.8.4.4 8.8.8.8;

      If this line isn’t added, the resolver defaults to the server’s DNS default.

    3. Check the configuration for errors with Ngnix.

      nginx -t

    4. Reload the Nginx.

      systemctl restart nginx

  5. Verify that OCSP stapling is now enabled.

    To see if OCSP stapling is enabled, do one of the following:

    • Check with the DigiCert® SSL Installation Diagnostic Tool

      Go to https://www.digicert.com/help and in the Server Address box, type in your server address (i.e. www.digicert.com).

      If OCSP stapling is enabled, under SSL Certificate has not been revoked, to the right of OCSP Staple, it says Good.

      Nginx: Instructions for OCSP Stapling (6)

    • Check using OpenSSL

      Enter the following command:

      openssl.exe s_client -connect [yoursite.com]:443 -status

      If OCSP stapling is enabled, in your response, in the OCSP Response Data section, it should say the following:

      OCSP Response Status: successful (0x0)

Additional Enabling OCSP Stapling Instructions

  • Apache: Enabling OCSP Stapling on Your Server

  • Windows: Enabling OCSP Stapling on Your Server


The DigiCert Difference

  • Who Uses DigiCert?
  • DigiCert Compatibility
  • Customer Testimonials
  • SSL Certificates

Related Links

  • SSL Certificates
  • CSR Creation
  • CSR Certificate Installation
  • SSL Import/Export to .PFX
  • Renewals Explained
  • Validation Doc Requirements
  • PKI Tutorial

SSL Certificates

  • EV Certificates
  • What Is SSL?
  • Exchange CSR
  • Multi-Domain
  • SSL Certificate Test
  • Apache SSL
  • OpenSSL CSR Generator
Nginx: Instructions for OCSP Stapling (2024)
Top Articles
How to Extract Text From PDF: 3 Free Methods
How To Prove Income When Paid In Cash - 3 Methods When You Don't Have Paystubs
Craigslist Lake Of Ozarks Mo
Rollag 2023 Dates
لیست 10 تا از بهترین سایت های دانلود فیلم و سریال خارجی بدون سانسور
Mountain Goat Dinar
Medici Vermittlung GmbH sucht Facharzt (m/w/d) | Gynäkologie und Geburtshilfe (8662) in Cottbus | LinkedIn
Espn Afl Tips
Salvage Boats for Sale | Theft Recovery Boats | Salvage Boat Auction
Brownlow fashions are a national obsession. And we owe it in part to this stylist
Studentvue Calexico
Top Songs On Octane 2022
Howdy Porta
Tw's Bait And Tackle Fishing Report
Word Cookies Pepper 17
Dekalb County Jail Fort Payne Alabama
Full Auto Switch For Smith And Wesson Sd9Ve
Veronica Correia titt*es
Myapps Tesla Ultipro Sign In
Wlfi Delays
Used Four-Wheelers For Sale Near Me
Austin Eaccess
Louis Chauffroy
Piastri vince il Gp di Baku, Leclerc secondo dopo un lungo duello con la McLaren. Incidente tra Perez e Sainz
415-261-2242
Craigslist Ludington Michigan
craigslist sitemap for Ludington ± 9 mi
Recruiting: Alabama trying to flip Michigan football's top 2025 commit
Craigslist For Cars Los Angeles
Union Supply Direct Wisconsin
Matthew Rotuno Johnson
Toyota: Everything to know about its entry in 2026 | Supercars
The News and Herald from Winnsboro, South Carolina
Lily Starfire White Christmas
20.000 Euro Kredit: Online und unkompliziert beantragen | Santander
Point After Salon
Craigslist Fayar
N-central Features and functionality
Cocaine Bear Showtimes Near Richland Cinemas
Premier Dental Clinic In North Tampa
Made in Abyss (Anime)
M3Gan Showtimes Near Century Arden 14 And Xd
Nbc Tv Wiki
SHE (FEAT. TYLER THE CREATOR): Nederlandse vertaling van Frank Ocean
Janitronics Team Hub
Spoiler - Death Is The Only Ending For The Villain
Her Triplet Alphas Chapter 32
Stranded Alien Dawn Cave Dweller
Judy Joo Husband David Allen
Ffxiv Shelfeye Reaver
Latest Posts
Article information

Author: Reed Wilderman

Last Updated:

Views: 6303

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.