I have tested the following PowerShell command Get-ChildItem -Path Cert:\localMachine\My | Test-Certificate -Policy SSL -DNSName "dns=mydns.com"
but it shows me the follwing three results and I did not really get their meaning :
WARNING: Chain status:
CERT_TRUST_IS_UNTRUSTED_ROOT Test-Certificate : A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. 0x800b0109 (-2146762487 CERT_E_UNTRUSTEDROOT)
At line:1 char:45
- ... achine\My | Test-Certificate -Policy SSL -DNSName "mydns.com ...
+ CategoryInfo : NotSpecified: (:Certificate) [Test-Certificate], Exception + FullyQualifiedErrorId : CryptographicError,Microsoft.CertificateServices.Commands.TestCertificate
False
WARNING: Chain status:
CERT_TRUST_IS_NOT_TIME_VALID
CERT_TRUST_IS_UNTRUSTED_ROOT
Test-Certificate : A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. 0x800b0109 (-2146762487 CERT_E_UNTRUSTEDROOT)
At line:1 char:45
- ... achine\My | Test-Certificate -Policy SSL -DNSName "mydns.com ...
+ CategoryInfo : NotSpecified: (:Certificate) [Test-Certificate], Exception + FullyQualifiedErrorId : CryptographicError,Microsoft.CertificateServices.Commands.TestCertificate
False
WARNING: Chain status: CERT_TRUST_IS_NOT_TIME_VALID Test-Certificate : A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file. 0x800b0101 (-2146762495 CERT_E_EXPIRED)
At line:1 char:45
- ... achine\My | Test-Certificate -Policy SSL -DNSName "mydns.com ...
+ CategoryInfo : NotSpecified: (:Certificate) [Test-Certificate], Exception + FullyQualifiedErrorId : CryptographicError,Microsoft.CertificateServices.Commands.TestCertificate
False