• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Fix Nginx OCSP ERROR : OCSP Response Expired

By Abhishek Ghosh August 18, 2016 10:48 pm Updated on August 18, 2016

Fix Nginx OCSP ERROR : OCSP Response Expired

Advertisement

Previously we written in details on How to Enable OCSP Stapling Nginx. Here is How to Fix Nginx OCSP ERROR – OCSP Response Expired After Enabling OCSP Stapling on Nginx. Error is Due to Certain Criterion of RFC. This is not quite uncommon error.

 

Why OCSP ERROR : OCSP Response Expired Appears?

 

It is common to get this error in Opera Browser, where the error code is Error 1066. It shows up as Secure connection: fatal error (1066). Unable to verify the website’s identity (OCSP error). The response from the online certificate validation (OCSP) server was too old.. When you are just user, the fix is easy as Opera user – type opera:config on your Opera Browser’s address bar, go to Security Preferences, Disable “OCSP Validate Certificates”. It is clearly not for the server administrators but as user or client. Opera is powerful browser, so is Firefox. It can be cross checked with SSL Lab’s test, where the error will show up as :

Vim
1
OCSP ERROR: OCSP response expired on Thu Aug 08 02:45:09 PDT 2016

The RFC needs revision, OCSP had an old version. It is due to the case known as “OCSP Must-Staple”. The concept of “Must-Staple” was implemented to allow the web browsers to reliably implement a fail hard policy. But actually it never happened out of other bugs, problems with other protocols etc. There was an explosion of certificate revocation in pre-heartbleed era. There are valid reasons of it (which is related to security and you can web search, it is off topic here). With OCSP, web browsers no longer required to obtain and cache huge certificate revocation lists. The OCSP protocol allows anyone relying upon the validity of any apparently-valid certificate on-the-fly. RFC 6066 (June, 2011) the TLS protocol was extended to allow a web browser to request and a web server to supply this OCSP information in its initial connection handshake. The common problems with current method is Bandwidth & OCSP server load and continuous try by the Browsers to both make the Performance better but also not trade on security.

Advertisement

---

In short, OCSP stapling the TLS web server (Nginx in our case) periodically asks the CA’s OCSP server for the revocation status of the certificate it is serving, and the CA server replies with a signed and timestamped OCSP response. This response is saved as cache in nginx and it is sent along with the certificate to the clients when they connect. The client uses the CA signature and the timestamp to verify the validity of the response. OCSP stapling is designed to reduce the cost of an OCSP validation. However, OCSP stapling supported only one OCSP response at a time, this limitation has been addressed by Multiple Certificate Status Request Extension, specified in RFC 6961.

So – OCSP ERROR : OCSP Response Expired is not out of your any mistake, it is out of old background, HearBleed etc. Browsers are actually towards perfect. With this knowledge, you can read here if you are interested about the thing –

Vim
1
https://wiki.mozilla.org/CA:ImprovingRevocation

 

How to Fix This OCSP ERROR : OCSP Response Expired on Nginx?

 

OCSP Response Expired is not out of your any mistake, very much truth. But you want to get rid of this error. It is exactly like why we almost never use too much tight cipher. It is not abnormal to get erroneously blacklisted by some automatic checking systems.

In our previous guide on How to Enable OCSP Stapling Nginx, we supplied the example configuration so that OCSP Must-Staple happens, validating the OCSP response. It was too tight. We have no made it complex by mentioning –

Vim
1
http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_stapling

Until OCSP Must-Staple happens, validating the OCSP response not of huge value and can be disabled to reduce configuration overhead. The client will validate the OCSP response anyway. Even if an attacker induced the server to staple a bogus response, the client would ignore. It will be like no stapling. So the answer how to fix this OCSP ERROR : OCSP Response Expired on Nginx is just making the ssl_stapling_verify directive off from on :

File : /etc/nginx/sites-available/default
Vim
1
2
ssl_stapling on;
ssl_stapling_verify off;

Followed by checking config with nginx -t and restarting Nginx. You’ll not get error anymore if you test on SSL Labs or Opera browser.

Additionally, you can increase these directive’s values like this example for better performance –

File : /etc/nginx/sites-available/default
Vim
1
2
3
4
5
6
7
...
        resolver 8.8.8.8 8.8.4.4 valid=300s;
        resolver_timeout 30s;
...
        ssl_session_cache       builtin:1000  shared:SSL:20m;
        ssl_session_timeout     4h;
...

Fix-Nginx-OCSP-ERROR-OCSP-Response-Expired

 

No! I Do Not Want Your Quick Fix. I Will Keep ssl_stapling_verify on And Use Complicated Way

 

Server is yours. We use OFF like written above. It may happen that you want to keep ssl_stapling_verify on despite it can give such error in future which none ever probably could troubleshoot. We have not talked about the ssl_stapling_responder directive to avoid complexity. This directive overrides the URL of the OCSP responder specified in the Authority Information Access (RFC 5280, section 4.2.2.1) certificate extension. For GeoTrust SSL/TLS certificate, information to retrieve the URL is here :

Vim
1
https://knowledge.geotrust.com/support/knowledge-base/index?page=content&actp=CROSSLINK&id=HOWTO111090

In very short, you need to run this command :

Vim
1
OLDIFS=$IFS; IFS=':' certificates=$(openssl s_client -connect google.com:443 -showcerts -tlsextdebug -tls1 2>&1 </dev/null | sed -n '/-----BEGIN/,/-----END/ {/-----BEGIN/ s/^/:/; p}'); for certificate in ${certificates#:}; do echo $certificate | openssl x509 -noout -ocsp_uri; done; IFS=$OLDIFS

We received http://g.symcd.com as one URL for GeoTrust.

In such case, you have to use these three :

Vim
1
2
3
        ssl_stapling on;
        ssl_stapling_verify on;
        ssl_stapling_responder http://your-ocsp.your-ca.com/;

Followed by checking config with nginx -t and restarting Nginx.

Tagged With unable to verify the website\s identity (OCSP error) , ocsp verify signature error how to solve , ocsp response expired , ocsp error: ocsp response expired , OCSP Error correction , nginx must-staple cache , nginx error log ocsp responder timed out ( , how to fix ocsp errors , how to fix ocsp error , he response from the online certificate validation (OCSP) server was too old

This Article Has Been Shared 233 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Fix Nginx OCSP ERROR : OCSP Response Expired

  • SELinux and Security in the Context of Cloud Servers

    SELinux Was Developed By United States National Security Agency (NSA). SELinux and Security in the Context of Cloud Servers Can Be Questionable.

  • Security Concerns of Server Virtualization and Solutions

    Recent discovery of VENOM and related critical bugs in the Xen, KVM, and native QEMU virtual machine platforms again brought the topic Security Concerns of Server Virtualization in to lime light. VENOM was unknown, from Heartbleed, what we have learned is quite clear – frankly there is nothing to do with the unknown, undiscovered bugs […]

  • How to Add DMARC, DKIM, SFP to Avoid Email Spoofing

    Commonly, Transactional Email Services Like Mandrill is used With Google Apps. Here is How to Add DMARC, DKIM, SFP to Avoid Email Spoofing.

  • Changing Scenario in US Based Cloud Computing : The Business Aspects

    Changing Scenario in US Based Cloud Computing Will Render the Telecommunication companies to could become the wholesale suppliers of cloud services in future.

  • Price War in the cloud : The Actual War is Rackspace Versus Amazon

    Price War in the cloud is in practical World is Rackspace Versus Amazon as infrastructure provider or rather Open Source versus closed source. Let us look deep.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Fix Nginx OCSP ERROR : OCSP Response Expired," in The Customize Windows, August 18, 2016, January 29, 2023, https://thecustomizewindows.com/2016/08/fix-nginx-ocsp-error-ocsp-response-expired/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT