Hello,
I have tried to add my Unifi AP following this guide:
https://packetfence.org/doc/PacketFence_Network_Devices_Configuration_Guide.html#_ubiquiti_2
When i get to this step:
/usr/local/pf/bin/pfcmd pfcron ubiquiti_ap_mac_to_ip
I receive an SSL error:
Can't connect to 10.2.2.58:8443 (certificate verify failed)
SSL connect attempt failed error:1416F086:SSL
routines:tls_process_server_certificate:certificate verify failed at
/usr/share/perl5/LWP/Protocol/http.pm line 49.
...propagated at /usr/local/pf/lib/pf/Switch/Ubiquiti/Unifi.pm line 204.
I have tried to fix this by issuing a LetsEncrypt SSL certificate and
assigning it to my Unifi controller. But to do this I must use a
domain name. For example I have chosen:
unifi.mydomain.com
But when i try to add this instead of the IP in then Controller IP
Address field here:
/admin/alt#/configuration/switch/10.2.2.58
I get an invalid IP address error.
I have attempted to simply disable SSL checks in the perl file by editing:
/usr/share/perl5/LWP/Protocol/http.pm
and adding
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
at the top of the file. But this has not resolved the issue. but
honestly perl is not my strong suit.
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users