Skip to content

Instantly share code, notes, and snippets.

View JimmyJamTQBD's full-sized avatar

James Stutes JimmyJamTQBD

  • Torq.io
  • Central Texas
View GitHub Profile
@infamousjoeg
infamousjoeg / AIMCCPClientCert.ps1
Last active November 19, 2024 18:33
CCP GetPassword in PowerShell with Client Certificate
# Set request variables
$baseURL = "https://cyberark.joegarcia.dev"
$appID = "Ansible"
$safe = "D-Win-SvcAccts"
$object = "Operating System-WinDomain-joegarcia.dev-Svc_SSIS"
# Define the certificate thumbprint
$thumbprint = "INSERT_CERTIFICATE_THUMBPRINT_HERE"
# Retrieve the certificate from Current User's Personal certificate store