Omada OC200 API SSL
Hi,
 I have a Raspberry PI that is setup as a DNS server. It has an A Record ( omada.local) for the Omada Controller IP 192.168.0.4.
 
 I generated SSL certificate and keys using these commands. Can't paste due to sensitive language regulation ![]()
 
 
 
 Omada Controller accepts either PEM, JKS or PFX file format for the SSL Cert and SSL Key.
 
 I just renamed the above server.key to server.key.pem and server.csr to server.csr.pem since they are in the PEM format already.
 
 Another way is rename them is using the openssl command: openssl rsa -in server.key -out server.key.pem 
 
 
 I am trying to connect to the API using SSL locally on my network. I have a Python script that tries to connect to the controller.
 Issue I am facing is that SSL is not working and it is throwing out warnings
  InsecureRequestWarning: Unverified HTTPS request is
  being made to host 'omada.local'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
 
 I understand that it is a self signed certificate, not essentially since I created a root authority too but yeah it is not recognized. I have been at it for a couple of hours, trying to get it to work properly but it is being a pain. No idea what I am missing.
 
 This is the Omada Controller setup
 
 
 This is part of the script
 
 
 
 
 
 
 I am using the Omada API Wrapper in Python which is this
 https://github.com/ghaberek/omada-api
 
 I am able to connect and get site info and clients info. It's just that the warnings are annoying. I can disable the warnings too but I really want SSL to work fine.
 
 Please help and reply if you find anything that I am doing wrong.
 
 Many thanks
