Skip to content

Instantly share code, notes, and snippets.

@calebbaker
calebbaker / Get-RemoteSSLCertificate.ps1
Created March 14, 2022 15:33 — forked from jstangroome/Get-RemoteSSLCertificate.ps1
PowerShell script to retrieve the public X509 certificate from a remote TLS endpoint
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string]
$ComputerName,
[int]
$Port = 443
)