API authentication error due to SSL verification failure
Original Question or Issue:
API calls sent from Python-based applications are failing authentication and returns an SSL verification failed error even if the site's SSL certificate is still valid. All functions from the FileCloud web interfaces are working.
Environment:
- Product - FileCloud Server
- Version - Any
- Platform - Any
Steps to Reproduce:
Error or Log Message:
-
LoginCall=s.post(ServerURL+LoginEndPoint, data=Creds, headers=Headers).json()
-
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
Defect or Enhancement Number:
Cause:
Resolution or Workaround:
- Verify if your site has all the valid SSL certificate files installed. You can use a third-party site to validate your site's SSL certificates. (Ex. SSL Shopper).
- If the SSL Checker returns an error like the screenshot below, it should tell which certificate files are missing from your site.
- Install the files mentioned above using the methods below:
Notes:
- https://www.filecloud.com/supportdocs/fcdoc/latest/server/filecloud-administrator-guide/installing-filecloud-server/post-installation/ssl-configuration/use-ssl-on-windows/install-a-certificate-using-the-filecloud-control-panel
- https://www.filecloud.com/supportdocs/fcdoc/latest/server/filecloud-administrator-guide/installing-filecloud-server/post-installation/ssl-configuration/use-ssl-on-windows/manually-install-ssl-certificates-for-filecloud-on-windows
- https://www.filecloud.com/supportdocs/fcdoc/latest/server/filecloud-administrator-guide/installing-filecloud-server/post-installation/ssl-configuration/use-ssl-on-linux/install-an-ssl-certificate-on-linux