I am developing a web server for a local device. The device will be accessed locally and not from outside using local ip address. I generated a certificate using openssl with CN=* in order to avoidethe hostname check.
But this return another error:
requests.exceptions.SSLError: HTTPSConnectionPool(host='192.168.17.31', port=443): Max retries exceeded with url: /lua/device (Caused by SSLError(SSLCertVerificationError("sole wildcard without additional labels are not support: '*'.")))
my computer does not know the hostname of the device. but it know the ip address. and I want that the cert validation made automatically and not manually using public key from my computer
How to make a certificate that does not generate error in the hostname check ?