API Reference
Class
CertificatePosture
Queries certificate store security posture from local machine Root and Intermediate stores.
Inheritance
- Object
- CertificatePosture
Methods
public static CertificatePostureInfo Get(String computerName = null, Int32 recentWindowDays = 30) #Returns:
CertificatePostureInfoGets certificate posture for a local or remote computer.
Parameters
- computerName System.String = null
- Target computer; null/empty uses local machine.
- recentWindowDays System.Int32 = 30
- Recent issuance window in days.
Returns
Certificate posture snapshot.
public static Task<CertificatePostureInfo> GetAsync(String computerName = null, Int32 recentWindowDays = 30, CancellationToken cancellationToken = null) #Returns:
Task<CertificatePostureInfo>Asynchronously gets certificate posture for a local or remote computer.
Parameters
- computerName System.String = null
- Target computer; null/empty uses local machine.
- recentWindowDays System.Int32 = 30
- Recent issuance window in days.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Returns
Certificate posture snapshot.
public static IAsyncEnumerable<CertificatePostureInfo> GetManyAsync(IEnumerable<String> computerNames, Int32 recentWindowDays = 30, Int32 degreeOfParallelism = 4, CancellationToken cancellationToken = null) #Returns:
IAsyncEnumerable<CertificatePostureInfo>Gets certificate posture for multiple computers with bounded concurrency.
Parameters
- computerNames System.Collections.Generic.IEnumerable{System.String}
- Target computers.
- recentWindowDays System.Int32 = 30
- Recent issuance window in days.
- degreeOfParallelism System.Int32 = 4
- Maximum concurrency.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object