Advertisement
Ubidibity

Update vCD certs

Feb 22nd, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. use scp (winscp or whatever) to place .pfx into /root, position into /root (i.e. cd /root)
  2.  
  3. /opt/vmware/vcloud-director/jre/bin/keytool -trustcacerts -deststoretype JCEKS -srcstoretype pkcs12 -srckeystore /root/new.pfx -destkeystore 1newcertificates.ks -storepass [password] -importkeystore
  4.  
  5. /opt/vmware/vcloud-director/jre/bin/keytool -list -storetype jceks -keystore 1newcertificates.ks
  6.  
  7. /opt/vmware/vcloud-director/jre/bin/keytool -changealias -storetype jceks -alias 1 -destalias http -keystore 1newcertificates.ks
  8.  
  9. /opt/vmware/vcloud-director/jre/bin/keytool -list -storetype jceks -keystore 1newcertificates.ks
  10.  
  11. /opt/vmware/vcloud-director/jre/bin/keytool -keyclone -storetype jceks -alias http -destalias consoleproxy -keystore 1newcertificates.ks
  12.  
  13. /opt/vmware/vcloud-director/jre/bin/keytool -list -storetype jceks -keystore 1newcertificates.ks
  14.  
  15. cd /opt/vmware/vcloud-director/bin
  16. service vmware-vcd stop
  17. mv /opt/vmware/vcloud-director/jre/bin/1newcertificates.ks 1newcertificates.old
  18. mv /root/1newcertificates.ks /opt/vmware/vcloud-director/jre/bin/1newcertificates.ks
  19. ./configure
  20.  
  21. (point it to /opt/vmware/vcloud-director/jre/bin/1newcertificates.ks, use [password] from the start store)
  22. https://vcdcellx
  23.  
  24. Verify new cert is in place
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement