Test for Certification Authority Certificate Expiry
-
- Posts: 65
- Joined: Mon Mar 19, 2012 11:51 pm
Test for Certification Authority Certificate Expiry
We have an internal AD Certificate Authority server that issues certificates to AD users and computers and I'm trying to find a way to test when the Certification Authority Certificate expires
Not sure..
What about Certificate Expiration test on port 636 (LDAP)?
If this will not work, try Shell Script test with powershell script like
Script uses PKI module
https://github.com/PKISolutions/PSPKI
Regards
Alex
What about Certificate Expiration test on port 636 (LDAP)?
If this will not work, try Shell Script test with powershell script like
Code: Select all
$statusUnknown = "ScriptRes:Unknown:"
$statusOk = "ScriptRes:Ok:"
$statusBad = "ScriptRes:Bad:"
try
{
Get-CA ca.company.com | Get-IssuedRequest -Property "CertificateTemplate" | %
{
$daysleft = ($_.NotAfter - (Get-Date)).days
echo ScriptRes:Ok:$daysleft
}
}
catch
{
echo $statusUnknown + $_.Exception.GetType().FullName + ":" + $_.Exception.Message
}
https://github.com/PKISolutions/PSPKI
Regards
Alex
-
- Posts: 65
- Joined: Mon Mar 19, 2012 11:51 pm