php - Get openssl certificate expiration date -


i've parsed openssl certificate openssl_x509_parse() function , got array result.

now need expiration time of certificate. in parsed array have validto_time_t element contains valid unix timestamp. how determine timezone timestamp belongs for?

so can't real expiration time because timestamp because means deifferent dates on different timezones.

php formats field using it's default timezone. can using http://docs.php.net/date_default_timezone_get function

and once know timezone can convert utc or whatever need


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -