phillips-hue-cert.txt
Accidentally close: https://developer.apple.com/forums/thread/707263
I want to connect to a Phillips Hue Api (something like that: https://<ip_address>/clip/v2/ressource/device).
The issue is that on the software Postman (to test), Phillips Hue says to disable "SSL Certificate Verification".
When I try to call with URLRequest in my app the same url, using URLSessions, I get this error:
Domain=kCFErrorDomainCFNetwork Code=-1202 NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “<ip_address_of_Hue_bridge>” which could put your confidential information at risk.
I read those articles:
https://developer.apple.com/forums/thread/67493
https://developer.apple.com/forums/thread/67493
I don't want to disable all HTTPS server trust evaluation, it’s super insecure. I want to customise the trust evaluation to let the connection through to be as secure as possible.
But I don't really know how to do this with URLSession or another thing if needed.
Phillips Hue is giving what looks like a pem certificate (see in attachements).
I don't know how to implement this in my URLSession request.
Thank you for your help
6
0
3.8k