<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Verdana",sans-serif;
color:black;}
span.EmailStyle20
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-NZ" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black">Hey Ola!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black">You should look into SNI
<a href="https://en.wikipedia.org/wiki/Server_Name_Indication">https://en.wikipedia.org/wiki/Server_Name_Indication</a> to see what’s happening here.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black">Try using check_http with the --sni flag e.g.:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:black"># ./check_http -H www.tekniskaverken.se -S --sni -C 30,14<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:black">OK - Certificate 'www.tekniskaverken.se' will expire on 09/22/2018 23:59.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:black"># ./check_http -H www.bixia.se -S --sni -C 30,14<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:black">OK - Certificate '*.bixia.se' will expire on 04/24/2018 23:59.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:black"># ./check_http -H www.utsikt.se -S --sni -C 30,14<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:black">OK - Certificate '*.utsikt.se' will expire on 05/20/2019 23:59.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black">Hope this helps!! Just let us know if you have any other issues
</span><span style="font-size:9.0pt;font-family:Wingdings;color:black">J</span><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black">Take care<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black">Gareth<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-NZ">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-NZ"> Help [mailto:help-bounces+gareth.fletcher=onenet.co.nz@monitoring-plugins.org]
<b>On Behalf Of </b>Axén Ola<br>
<b>Sent:</b> Tuesday, 11 October 2016 8:21 PM<br>
<b>To:</b> help@monitoring-plugins.org<br>
<b>Subject:</b> check_https_certificate<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I have a webserver that hosts three websites. All of them use port 443 and some kind of forwarding.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">When I test this check I can only get one certificate but I have three of them to different websites.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">How can I set up the check?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="SV"><a href="http://scanmail.trustwave.com/?c=6630&d=0JP81-bJVB5u3PgSkXBd7X_Li8C0OE6HXqZBp6sKQw&s=4&u=https%3a%2f%2fwww%2etekniskaverken%2ese">https://www.tekniskaverken.se</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV"><a href="http://scanmail.trustwave.com/?c=6630&d=0JP81-bJVB5u3PgSkXBd7X_Li8C0OE6HXvYToqsLFQ&s=4&u=https%3a%2f%2fwww%2ebixia%2ese">https://www.bixia.se</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV"><a href="http://scanmail.trustwave.com/?c=6630&d=0JP81-bJVB5u3PgSkXBd7X_Li8C0OE6HXvQSo_BfEA&s=4&u=https%3a%2f%2fwww%2eutsikt%2ese">https://www.utsikt.se</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="SV"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="SV"><o:p> </o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="SV" style="font-size:9.0pt;color:#1F497D;mso-fareast-language:SV">Ola Axén</span></b><span lang="SV" style="font-size:9.0pt;color:#1F497D;mso-fareast-language:SV"><br>
Systemtekniker, IT<br>
Tel 013-20 91 22<br>
_________________________________<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="SV" style="font-size:9.0pt;color:#1F497D;mso-fareast-language:SV">Tekniska verken i Linköping AB (publ)</span></b><span lang="SV" style="font-size:9.0pt;color:#1F497D;mso-fareast-language:SV"><br>
</span><span lang="SV" style="font-size:9.0pt;color:#888888;mso-fareast-language:SV">Box 1500<br>
581 15 Linköping</span><span lang="SV" style="font-size:9.0pt;color:#1F497D;mso-fareast-language:SV"><br>
Växel: 013-20 80 00<br>
<a href="http://scanmail.trustwave.com/?c=6630&d=0JP81-bJVB5u3PgSkXBd7X_Li8C0OE6HXqQRpa9fQw&s=4&u=http%3a%2f%2fwww%2etekniskaverken%2ese"><span style="color:blue">www.tekniskaverken.se</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV" style="font-size:9.0pt;color:#1F497D;mso-fareast-language:SV"><img border="0" width="60" height="19" style="width:.625in;height:.1979in" id="Bild_x0020_1" src="cid:image001.png@01D22403.7196B650" alt="tiny-logo-75px"></span><span lang="SV" style="mso-fareast-language:SV"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV"><o:p> </o:p></span></p>
</div>
</body>
</html>