• 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: URI: http://g symcd com# , ocsp verify signature error how to solve , ocsp response expired , ocsp error: ocsp response expired , 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 246 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Inertial Navigation System? January 25, 2021
  • What is Miniaturization? January 24, 2021
  • What is Domain-Driven Design (DDD)? January 23, 2021
  • Top 10 Anti Hacking Software for Microsoft Windows January 22, 2021
  • What is Software Modernization? January 21, 2021

 

About This Article

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

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

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

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

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