Utiliser ACME.sh avec vCenter

Installer acme.sh sur votre vcenter.

Connectez-vous en ssh à votre vcenter

[pastacode lang= »markup » manual= »cd%20~%0Awget%20’https%3A%2F%2Fgit.9r.com.au%2Fprojects%2FOPENSRC%2Frepos%2Facme.sh%2Fraw%2Facme.sh%3Fat%3Drefs%252Fheads%252Fmaster’%20-O%20acme.sh%0Achmod%20755%20.%2Facme.sh%0A.%2Facme.sh%20–install » message= » » highlight= » » provider= »manual »/]

[pastacode lang= »markup » manual= »acme.sh%20–issue%20-d%20example.com%20–dns%20%5C%0A%20%20%20–yes-I-know-dns-manual-mode-enough-go-ahead-please » message= » » highlight= » » provider= »manual »/]

Ajoutez le champs TXT généré par acme, rechargez votre dns.

[pastacode lang= »markup » manual= »acme.sh%20–renew%20-d%20example.com%20%5C%0A%20%20%20–yes-I-know-dns-manual-mode-enough-go-ahead-please » message= » » highlight= » » provider= »manual »/]

Voila nos clés acme sont prêtes. Nous allons les importer dans notre système à l’aide des outils vmware.

[pastacode lang= »markup » manual= »%0Aroot%40vmware%20%5B%20~%2F.acme.sh%20%5D%23%20%2Fusr%2Flib%2Fvmware-vmca%2Fbin%2Fcertificate-manager%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20***%20Welcome%20to%20the%20vSphere%206.7%20Certificate%20Manager%20%20***%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20–%20Select%20Operation%20–%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%201.%20Replace%20Machine%20SSL%20certificate%20with%20Custom%20Certificate%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%202.%20Replace%20VMCA%20Root%20certificate%20with%20Custom%20Signing%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20Certificate%20and%20replace%20all%20Certificates%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%203.%20Replace%20Machine%20SSL%20certificate%20with%20VMCA%20Certificate%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%204.%20Regenerate%20a%20new%20VMCA%20Root%20Certificate%20and%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20replace%20all%20certificates%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%205.%20Replace%20Solution%20user%20certificates%20with%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20Custom%20Certificate%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%206.%20Replace%20Solution%20user%20certificates%20with%20VMCA%20certificates%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%207.%20Revert%20last%20performed%20operation%20by%20re-publishing%20old%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20certificates%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%208.%20Reset%20all%20Certificates%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%7C%0A%0ANote%20%3A%20Use%20Ctrl-D%20to%20exit.%0AOption%5B1%20to%208%5D%3A%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%0A%0A%0AOption%5B1%20to%208%5D%3A%201%0A%20%0APlease%20provide%20valid%20SSO%20and%20VC%20privileged%20user%20credential%20to%20perform%20certificate%20operations.%0AEnter%20username%20%5BAdministrator%40vsphere.local%5D%3AAdministrator%40vsphere.local%0AEnter%20password%3A%0A%20%0APerforming%20operation%20on%20distributed%20setup%2C%20Please%20provide%20valid%20Infrastructure%20Server%20IP.%0AServer%20%3A%20hostname.9r.com.au%0A%20%20%20%20%20%20%20%20%201.%20Generate%20Certificate%20Signing%20Request(s)%20and%20Key(s)%20for%20Machine%20SSL%20certificate%0A%20%0A%20%20%20%20%20%20%20%20%202.%20Import%20custom%20certificate(s)%20and%20key(s)%20to%20replace%20existing%20Machine%20SSL%20certificate%0A%20%0AOption%20%5B1%20or%202%5D%3A%202%0A%20%0APlease%20provide%20valid%20custom%20certificate%20for%20Machine%20SSL.%0AFile%20%3A%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%0A%0AMettre%20les%20chemins%20des%20cl%C3%A9es%20g%C3%A9n%C3%A9r%C3%A9%20plus%20haut.%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%0A%0APlease%20provide%20valid%20custom%20certificate%20for%20Machine%20SSL.%0AFile%20%3A%20%2Froot%2F.acme.sh%2Fmondomaine.fr%2Fmondomaine.fr.cer%0A%20%0APlease%20provide%20valid%20custom%20key%20for%20Machine%20SSL.%0AFile%20%3A%20%2Froot%2F.acme.sh%2Fmondomaine.fr%2Fmondomaine.fr.key%0A%20%0APlease%20provide%20the%20signing%20certificate%20of%20the%20Machine%20SSL%20certificate%0AFile%20%3A%20%2Froot%2F.acme.sh%2Fmondomaine.fr%2Ffullchain.cer%0A%20%0AYou%20are%20going%20to%20replace%20Machine%20SSL%20cert%20using%20custom%20cert%0AContinue%20operation%20%3A%20Option%5BY%2FN%5D%20%3F%20%3A%20y%0A%20%0ACommand%20Output%3A%20%2Froot%2F.acme.sh%2Fmondomaine.fr%2Fmondomaine.fr.cer%3A%20OK%0A%20%0AGet%20site%20nameCompleted%20%5BReplacing%20Machine%20SSL%20Cert…%5D%0Adefault-site-name%0ALookup%20all%20services%0AGet%20service%20default-site-name%3A2f828f98-80ae-4414-8e29-8f5bc4ffeca8%0ADon’t%20update%20service%20default-site-name%3A2f828f98-80ae-4414-8e29-8f5bc4ffeca8%0A%20%0A%20…%20etc%20…%0A%20%0AUpdate%20service%20345572a0-1b95-4b1e-8652-4e7e21ed251c%3B%20spec%3A%20%2Ftmp%2Fsvcspec_renwzveb%0AGet%20service%2053c2d21f-144e-4779-85ff-4cf5e180d001%0AUpdate%20service%2053c2d21f-144e-4779-85ff-4cf5e180d001%3B%20spec%3A%20%2Ftmp%2Fsvcspec_nutupa2h%0AUpdated%2027%20service(s)%0AStatus%20%3A%2085%25%20Completed%20%5Bstarting%20services…%5D%0A%20%0A%20…%20this%20takes%20a%20while%20…%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%0A%0ALes%20cl%C3%A9es%20sont%20import%C3%A9es%20et%20les%20services%20red%C3%A9marre%2C%20attention%20le%20processure%20est%20un%20peu%20long%20comme%20un%20demarrage%20de%20vcenter.%0ASoyez%20patient.%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%20_%0A%20%0AStatus%20%3A%20100%25%20Completed%20%5BAll%20tasks%20completed%20successfully%5D%0A%20%0Aroot%40vmware%20%5B%20~%2F.acme.sh%20%5D%23%0A%0A » message= » » highlight= » » provider= »manual »/]

Et voila connectez-vous à votre vcenter comme d’habitude.

Attention pour l’instant il n’y a pas de renouvellement auto.