Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20396

Re: Re: ConvertDate Function returns incorrect date

$
0
0

The template included with Solarwinds only accounts for 1 SSL certificate per node, I have in some cases several on one server, so that didn't cut it for me.

 

As for my issue, the converting only went wrong when the dates were passed from the openssl parts parsing to get the date. I really don't have a solid answer as to why it's not working for me, however I did fix it in that I modified the script for the ones which were not working.
Basically for the ones NOT working properly I changed this part from the script from

Original:

Day = Components(1)
Year = Components(3)

 

If UBound(Components) = 5 Then

Day = Components(1)
Year = Components(3)

Else

Day = Components(1)
Year = Components(3)

End If

 

 

 

To this:

 

 

Day = Components(1)
Year = Components(3)

 

If UBound(Components) = 5 Then

Day = Components(2)
Year = Components(4)

Else

Day = Components(1)
Year = Components(3)

End If

 

Not really sure the reason as to why but I went through each of my certs and counted the day's manually to verify this is correct and it does correct the ones which were previously showing up as incorrect using the original script.

 

It's strange but I'm good for now. Thank you for looking into this. Jonathan Angliss


Viewing all articles
Browse latest Browse all 20396

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>