This page looks best with JavaScript enabled

Sectigo Reports with Powershell

 ·  ☕ 1 min read

Sectigo

API Documentation

Variable Name Type Allowed Values Description
authData AuthData Authentication data for access.
from Date The Start date of Activity log
to Date The End date of Activity log
organizationNames String organization names split by “,”
certificateStatus String 0 = Any
1 = Requested
2 = Enrolled - Downloaded
3 = Revoked
4 = Expired
5 = Enrolled - Pending Download
6 = Not Enrolled
certificateDate String 0 = Enrolled Date
1 = Downloaded Date
2 = Revoked Date
3 = Expire Date
4 = Requested Date
5 = Issued Date
Date Selection value

Powershell

Pulling a report of certificates using the Sectigo Report Service Web Service

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$webService = New-WebServiceProxy -Uri 'https://cert-manager.com:443/ws/ReportService?wsdl' -Namespace 'Sectigo'
$ns = $webService.getType().namespace
$webCreds = New-Object -TypeName Sectigo.AuthData
$webCreds.customerLoginUri = 'YOURLOGINURI'
$webCreds.login = 'username'
$webCreds.password = 'yourpassword'


#getClientCertReport(AuthData authData, Date from, Date to, String organizationNames, String certificateStatus, String certificateDate)
$results = ($webService.getSSLReport($webCreds,(get-date),$false,(get-date),$false,$null,$null,$null,$null)).Reports
Share on

Michael
WRITTEN BY
Michael
IT Engineer