mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-18 03:05:11 +00:00
Tests/X509: add setEndDate
This commit is contained in:
parent
0ac8b5d5ed
commit
135a4decf1
@ -181,6 +181,7 @@ aBtsWpliLSex/HHhtRW9AkBGcq67zKmEpJ9kXcYLEjJii3flFS+Ct/rNm+Hhm1l7
|
|||||||
$issuer->setDN($subject->getDN());
|
$issuer->setDN($subject->getDN());
|
||||||
|
|
||||||
$x509 = new X509();
|
$x509 = new X509();
|
||||||
|
$x509->setEndDate('lifetime');
|
||||||
|
|
||||||
$result = $x509->sign($issuer, $subject);
|
$result = $x509->sign($issuer, $subject);
|
||||||
$cert = $x509->saveX509($result);
|
$cert = $x509->saveX509($result);
|
||||||
|
Loading…
Reference in New Issue
Block a user