cve-2013-6420.phpt 362 B

12345678910111213141516
  1. --TEST--
  2. CVE-2013-6420
  3. --EXTENSIONS--
  4. openssl
  5. --FILE--
  6. <?php
  7. $crt = substr(__FILE__, 0, -4).'.crt';
  8. $info = openssl_x509_parse("file://$crt");
  9. var_dump($info['issuer']['emailAddress'], $info["validFrom_time_t"]);
  10. ?>
  11. Done
  12. --EXPECTF--
  13. Warning: openssl_x509_parse(): Illegal length in timestamp in %s on line 3
  14. string(27) "stefan.esser@sektioneins.de"
  15. int(-1)
  16. Done