Skip to content

Instantly share code, notes, and snippets.

View sojourn70's full-sized avatar

sojourn70

  • NW Illinois, US
  • 06:43 (UTC -05:00)
View GitHub Profile
@sojourn70
sojourn70 / fixcerts_3_2.py
Created January 29, 2026 19:46 — forked from marvinwankersteen/fixcerts_3_2.py
Replace certificates on vCenter server using the Fixcerts script
#!/usr/bin/python
# Run this from the PSC/VC to replace the Certificates using VMCA
#
# Main purpose of this script is to quickly replace the Expired Certificates on vCenter Server with minimal manual intervention.
#
# This script is capable of performing following certificate replacement tasks on VCSA based on the CLI arguments passed
# 1: Reset all Certificates on vCenter Server (including VMCA Root, Machine SSL, STS, Solution Users, Data-enciphement, SMS and Lookupservice certificate)
# 2: Replace Secure Token Signing (STS) Certificate
# 3: Replace Machine SSL Certificate
# 4: Replace all Solution User Certificates
#!/bin/bash
# Copyright (c) 2020-2021 VMware, Inc. All rights reserved.
# VMware Confidential
#
# Run this from the affected PSC/VC
#
# NOTE: This works on external and embedded PSCs
# This script will do the following
# 1: Regenerate STS certificate
#