logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Can't enable SSLUseStapling on
Author
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Thu 11 Jun '15 3:18    Post subject: Can't enable SSLUseStapling on Reply with quote

I'm trying to enable SSLUseStapling by adding:
SSLUseStapling on to my virtualhost file but my Apache server immediately exits without any error message.

I have my CAcertificate set like:
SSLCACertificateFile "C:\Program Files\Apache Software Foundation\Apache24\bin\ssl2\ca.pem"

Any idea what could cause this?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 11 Jun '15 4:52    Post subject: Reply with quote

Is it inside a <Directory> container inside the <VirtualHost>? It's not allowed inside <Directory> even if that is inside a vhost.

Anything in windows event log?
If not, try starting from the command line.
If still nothing, try LogLevel debug.
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Thu 11 Jun '15 10:13    Post subject: Reply with quote

I found that I had to enable: SSLStaplingCache shmcb:C:\Progra~2\Apache~1\Apache24\logs\ocsp(512000)
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Mon 15 Jun '15 16:35    Post subject: Reply with quote

Did you check your site afterwards at ssllabs.com?
What does it say?
Enabled?

Although i had configured it the same way and i was able to start apache, i got "Try Later" as status at ssllabs and thats pretty crazy, cuz i don't know what i did wrong.
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Mon 15 Jun '15 17:05    Post subject: Reply with quote

Yes, it's working fine according to SSLlabs Very Happy
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 17 Jun '15 12:32    Post subject: Reply with quote

jraute wrote:
Did you check your site afterwards at ssllabs.com?
What does it say?
Enabled?

Although i had configured it the same way and i was able to start apache, i got "Try Later" as status at ssllabs and thats pretty crazy, cuz i don't know what i did wrong.


Were you able to get it working or do you need support?
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Thu 18 Jun '15 7:25    Post subject: Reply with quote

Quote:
Were you able to get it working or do you need support?


Thanks for asking!
No, i wasn't able to get another status at ssllabs than "Try later".
Any idea?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 18 Jun '15 10:39    Post subject: Reply with quote

my curent config is

Global in httpd.conf
Code:

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
#...
SSLUseStapling on
SSLSessionCache shmcb:/apache2/logs/ssl_gcache_data(512000)
SSLStaplingCache shmcb:/apache2/logs/ssl_stapling_data(512000)


Since there is a bit more SSL config You can see it at http://pastebin.com/skQwBNQD
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Fri 19 Jun '15 8:35    Post subject: Reply with quote

That is my configuration - and it is no problem to start apache with it, but ssllabs say: "OCSP stapling Invalid OCSP response failed: TRY_LATER"

Is it a problem when activating stapling, so that i only have to wait a day or so?

Oha, Problem found!
In the error log it says:
Quote:
[Fri Jun 19 08:31:54.658867 2015] [ssl:error] [pid 2012:tid 2424] (OS 10061)Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. : [client 64.41.200.108:33119] AH01974: could not connect to OCSP responder 'ocsp2.globalsign.com'
[Fri Jun 19 08:31:54.658867 2015] [ssl:error] [pid 2012:tid 2424] AH01941: stapling_renew_response: responder error
[Fri Jun 19 08:32:06.764488 2015] [ssl:error] [pid 2012:tid 2424] [client 64.41.200.108:33865] AH02042: rejecting client initiated renegotiation


Could be a problem with the firewall.
But what would be necessary besides the config-changes?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Fri 19 Jun '15 11:03    Post subject: Reply with quote

Netcraft gives some more info which OSCPserver is used and if the Certificate is valid :

http://toolbar.netcraft.com/site_report?url=https://www.yourdomain.com
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 22 Jun '15 17:55    Post subject: Reply with quote

jraute wrote:


(OS 10061)Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. : [client 64.41.200.108:33119] AH01974: could not connect to OCSP responder 'ocsp2.globalsign.com'

jraute wrote:

Could be a problem with the firewall.
But what would be necessary besides the config-changes?


The client / browser needs to connect to the ocsp2.globalsign.com server the veryfiy certificate. BUT stapling does that work for the client on the server / apache.[1]

So yes you need to configure your firewall.


[1] https://en.wikipedia.org/wiki/OCSP_stapling
Back to top


Reply to topic   Topic: Can't enable SSLUseStapling on View previous topic :: View next topic
Post new topic   Forum Index -> Apache