This project leverages the HP iLO Python API to automate the request and renewal process for SSL certificates on servers running iLO5. By default this uses the Cloudflare DNS challenge for the certificate, but it can be modified to use any method you like.
NB: This has only been tested with iLO 5 version 2.99.
Make sure you have a valid Python 3 install with pip
ready to go. I recommend
using a virtual environment of some kind to run this script. Install dependencies...
pip install -r requirements.txt
...and you'll be ready to go!
-
Customize your
.env
file using the.env.template
file provided. Make sure to provide values for all variables. -
Create a file called
cloudflare-token.ini
that contains your CloudFlare DNS API token in this format:dns_cloudflare_api_token = {YOUR TOKEN HERE}
-
Run the script:
python generate_cert.py
-
If everything worked, iLO will reset itself in a few minutes with the new SSL cert. You're done!