Sever/HCI

HX - Connect SSL

여행자의꿈 2022. 4. 12. 22:54
  1. 키생성

openssl req -new -out /etc/ssl/certs/hx-connect.csr -newkey rsa:2048 -nodes -sha256 -keyout /etc/ssl/private/hx-connect.key -config /etc/ssl/req.cnf

openssl req -text -noout -in /etc/ssl/certs/hx-connect.csr | grep DNS

 

  1. CSR 등록

 

  1. CER 파일 복사

 

root@J:/usr/share/springpath/storfs-misc/hx-scripts# cd /etc/ssl/private

root@J:/etc/ssl/private# openssl x509 -inform DER -in hx-connect.cer -out hx-connect.crt

root@J:/etc/ssl/private# cd /usr/share/springpath/storfs-misc/hx-scripts/

root@J:/usr/share/springpath/storfs-misc/hx-scripts# ./certificate_import_input.sh

Enter the path for the key: /etc/ssl/private/hx-connect.key

Enter the path for the certificate in crt format: /etc/ssl/private/hx-connect.crt

Successfully installed certificate

The cluster needs to be re-registered with vCenter for the certificate import to be completed.

Do you want to continue with re-registration? (y/n): y

Enter vCenter username (user@domain): administrator@vsphere.local

Enter vCenter Password:

Trying to retrieve vCenter information ....

Cluster re-registration in progress ....

Cluster re-registered successfully with vCenter !!

root@J:/usr/share/springpath/storfs-misc/hx-scripts#