Added support for parsing ssl certificates using GeneralizedTime format.

fix bug #65698
fix bug #66636
I think this needs additional check for string length, since we already check for 13, but the 4-digit year requires 2 extra chars.