< Back

Get-CertInfo

Sun Jan 19, 2020 5:51 pm

NAME Get-CertInfo



SYNOPSIS

Gets certificate information

Version 1.0.0.4





SYNTAX

Get-CertInfo [-FilePath] <String> [<CommonParameters>]





DESCRIPTION

Gets certificate information from pfx file and returns certificate validity, Subject Name, SAN, Signature Hash

Algorithm, Keysize and Issuer. Returns false on errors





PARAMETERS

-FilePath <String>

Specifies the location of the pfx file



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None.





OUTPUTS

System.Array





NOTES





Requirements: Windows 10 17.09 or better or Server 2016 or better

Requirements: Windows PowerShell 5.1



-------------------------- EXAMPLE 1 --------------------------



PS>Get-Certinfo "C:\\Users\\User-01\\Documents\\MyCerts\\Private\\MyCert.Pfx"















RELATED LINKS