Skip to main content

Aggiornamento certificato STS VMware vCenter

VMware 30 March 2023

1- Collegarsi in SSH con utenza di root sulla VCSA
2- Creare una nuova folder in root con il seguente comando:

Cd /root
mkdir newsts_dd.mm.yyyy
cd /root/newsts_dd.mm.yyyy

3- Copiare template precedentemente configurato (se presente) col seguente comando
cp /usr/lib/wmware-vmca/share/config/certool.cfg /root/newsts_dd.mm.yyyy

4- Nel caso il template non fosse mai stato creato, generare un nuovo file con il seguente comando

touch certool.cfg

5- Compilare file certool.cfg, inserendo i dati aziendali necessari

vi certool.cfg
Aggiornamento certificato STS VMware vCenter 1

6- Creare le chiavi privata e pubblica eseguendo il seguente comando:

/usr/lib/vmware-vmca/bin/certool –server localhost –genkey –privkey=/root/newsts_dd.mm.yyyy/sts.key –pubkey=/root/newsts_dd.mm.yyyy/sts.pub

7- Eseguire “ls -l” per verificare la creazione dei file sts.key e sts.pub

8- Generare il certificato .cer lanciando il seguente comando

/usr/lib/vmware-vmca/bin/certool –gencert –cert=/root/newsts_dd.mm.yyyy/newsts.cer –privkey=/root/newsts_dd.mm.yyyy/sts.key –config=/root/newsts_dd.mm.yyyy/certool.cfg

9- Eseguire “ls -l” per verificare la creazione del file newsts.cer

10- Convertire il certificato .cer in formato PK12

openssl pkcs12 -export -in /root/newsts_dd.mm.yyyy/newsts.cer -inkey /root/newsts_dd.mm.yyyy/sts.key -certfile /var/lib/vmware/vmca/root.cer -name “newstssigning” -passout pass:Inserireunapassword -out newsts.p12

11- Eseguire “ls -l” per verificare la creazione del file newsts.p12

12- convertire il certificato pk12 in PEM, il primo comando serve per creare un file chain.pem, il secondo per creare un file key.pem

openssl pkcs12 -in newsts.p12 -nokeys -out newsts_chain.pem
openssl pkcs12 -in newsts.p12 -nodes -nocerts -out newsts_key.pem

13- Controllare che il file newsts_key.pem inizia e termina come il seguente esempio:

—–BEGIN PRIVATE KEY—–
—–END PRIVATE KEY—–

Nel caso non lo fosse, lanciare il seguente comando:

openssl rsa -in newsts_key.pem -check -out newsts_key_rsa.pem

14- Aprire con un notepad i 2 file appena generati

15- Incollare il contenuto del file newsts_key.pem (o newsts_key_rsa.pem nel caso di modifiche) in fondo al contenuto del file newsts_chain.pem (vedi esempi seguenti)

Aggiornamento certificato STS VMware vCenter 2

File newsts_chain.pem + newsts_key.pem

Aggiornamento certificato STS VMware vCenter 3

16- Salvare il file combinato in newsts.pem

17- Aprire da web vSphere con utenza di root
18- Caricare il certificato newsts.pem nella tab Administrator –> Certificate Management

Aggiornamento certificato STS VMware vCenter 4

19- Premere Import and replace certificate e indicare il file newsts.pem

0 0 votes
Article Rating
Subscribe
Notify of

0 Comments
Oldest
Newest Most Voted
Goline It Services Logo

News

  • GOLINE is pleased to announce that it has achieved ESET Gold Partner status for 2027. The recognition follows the successful completion of ESET’s partner certification requirements and confirms GOLINE’s continued investment in cybersecurity expertise and professional development. ESET’s partner programme is designed to support companies working with its cybersecurity solutions through dedicated technical and sales resources, training and other partner services. For GOLINE, the achievement further strengthens its collaboration with ESET and its ability to integrate ESET security technologies into the cybersecurity solutions and services it provides to businesses. ESET solutions are already part of GOLINE’s cybersecurity portfolio, alongside technologies...
  • GOLINE SA is excited to announce a new partnership with NetApp, a global leader in cloud data services and storage solutions. This collaboration aims to help organizations modernize their IT infrastructure, streamline data management, and enhance performance across cloud and hybrid environments. Modern Data Solutions for Businesses Through this partnership, GOLINE integrates advanced data management solutions, enabling businesses to securely store, manage, and access critical information across cloud, on-premises, or hybrid setups. Clients can benefit from: Flexible and scalable storage solutions to meet growing data needs Simplified management of cloud and on-premises environments Enterprise-grade security for sensitive and mission-critical data...
  • GOLINE SA is proud to announce a new strategic partnership with Omnissa, a global leader in digital workspace platforms and Horizon Cloud Service solutions. This collaboration marks a significant step forward in helping organizations embrace secure, flexible, and high-performance work environments. Why Choose Omnissa for Your Business? The platform enables virtual desktops, applications, and unified endpoint management. Organizations can deploy scalable workspaces across cloud, hybrid, or on-premises setups. Key benefits include: Easy access to desktops and apps on any device Centralized management for Windows, macOS, iOS, Android, and ChromeOS Strong security with access controls and multi-factor authentication Automated scaling to...
  • Hosting Services
  • +41 (0)91 260 76 50
0
Would love your thoughts, please comment.x
()
x
| Reply