This repository contains Python scripts that helps to update HTTPS certificates for the Live service in batch.
The developers of this tool are not responsible for data loss neither for unexpected cost increases. You, the user of this tool, are the sole responsible for checking the source code.
- Python: https://www.python.org/
- pip: https://pip.pypa.io/en/stable/installation/
- Huawei SDK Python: https://support.huaweicloud.com/intl/en-us/ssdk-live/live_18_0003.html
With Python and pip installed, installing the Huawei SDK is straightforward. Simply execute the following commands to install both the Python SDK core library and the related service libraries:
pip install huaweicloudsdkcore huaweicloudsdklive- Create a
my_config.pyfile and place your credentials(AK/SK). Takemy_config.example.pyas reference; - Copy the certificate and the private key into the
cert/directory and modify the value ofcert_nameandprivate_key_namein theupdateCerts.pyfile. Make sure that the certificate is in PEM format - Create a
domains.txtfile into the root folder and place all the domain that will be updated. You can usedomains.example.txtas reference. - Run the
updateCerts.pyfile usingpython ./updateCerts.py
- Huawei Cloud Live API - UpdateDomainHttpsCert: https://console-intl.huaweicloud.com/apiexplorer/#/openapi/Live/debug?api=UpdateDomainHttpsCert
- Huawei Cloud Live - HTTPS Certificate Requirements: https://support.huaweicloud.com/intl/en-us/iLive-live/live_01_0045.html