Update SSL.class.php

This commit is contained in:
Namhyeon Go 2020-04-17 18:08:11 +09:00 committed by GitHub
parent d4cce046eb
commit c7ee370f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,3 +71,16 @@ if(!class_exists("SSL")) {
}
}
}
/*
## Example
```
$certInfo = SSL::getSSLinfo('stackoverflow.com');
echo $certInfo->validFrom .'<br>';
echo $certInfo->validTo .'<br>';
echo $certInfo->issuer .'<br>';
echo $certInfo->validity .'<br>';
echo $certInfo->validitytot .'<br>';
echo $certInfo->crtValRemaining .'<br>';
```
*/