[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit-dev] [PATCH] bugfix when having clientpemfile with httpd and moni
From: |
Markus Linnala |
Subject: |
[monit-dev] [PATCH] bugfix when having clientpemfile with httpd and monit status not working |
Date: |
Wed, 28 Dec 2011 16:47:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.666 |
With this config:
set httpd port 2812
allow localhost
SSL ENABLE
PEMFILE /etc/certs/monit.pem
CLIENTPEMFILE /etc/certs/monit-client.pem
I got:
# monit status
monit: cannot read status from the monit daemon
And at monit.log:
[EET Dec 28 15:01:56] error : monit: The client did not supply a
required client certificate!
[EET Dec 28 15:01:56] error : monit: cannot read status from the
monit daemon
I expect to get working status.
I have attached patch to fix this situation. Use clientpemfile for
status connection too it is set.
Patch adds clientpemfile to Ssl_T and then fill it when initializing
status socket. Same idea as at sendmail open_server. And then it
tries to free memory whenever we free certmd5.
Patch is lightly tested.
--
Markus Linnala, Chief Systems Architect
Cybercom Finland
Pakkahuoneenaukio 2 A; 33100 Tampere
Mobile +358 40 5919 735
address@hidden
www.cybercom.fi | www.cybercom.com
monit-5.3.2-maage-clientcertssl.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [monit-dev] [PATCH] bugfix when having clientpemfile with httpd and monit status not working,
Markus Linnala <=