How to configure certificate-whitelist?
Closed this issue · 1 comments
[Tue Oct 20 19:48:02.532196 2020] [wsgi:error] [pid 913] [client 172.16.0.127:49330] ERROR:puppetboard.utils:('Connection aborted.', PermissionError(13, 'Permission denied')), referer: http://172.16.0.193/
This seems to be because of my SSL settings, puppetdb refused the connection.
I think it’s because I didn’t set the whitelist correctly.I am not sure how to configure /etc/puppetlabs/puppetdb/certificate-whitelist.
I just configured like this :
cat /etc/puppetlabs/puppetdb/certificate-whitelist
puppetboard.example.pem
And then I restarted puppetdb.
Sorry,The above error is due to the issue of readable permissions.I just solved this.But there are still errors in log.
[Tue Oct 20 20:33:46.749751 2020] [wsgi:error] [pid 12812] [client 172.16.0.127:54018] ERROR:pypuppetdb.api:Could not reach PuppetDB on puppet.pi.sjtu.edu.cn:8081 over HTTPS., referer: http://172.16.0.193/
[Tue Oct 20 20:33:46.749806 2020] [wsgi:error] [pid 12812] [client 172.16.0.127:54018] ERROR:puppetboard.utils:HTTPSConnectionPool(host='puppet.pi.sjtu.edu.cn', port=8081): Max retries exceeded with url: /pdb/query/v4/environments (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f1ec3ae3c18>: Failed to establish a new connection: [Errno 111] Connection refused',)), referer: http://172.16.0.193/