Content Security Policy: The settings of the page have blocked the loading of a resource ("script-src")

Works! But now I have this error:

Job exception: SSL_connect returned=1 errno=0 peeraddr=<my_ip>:587 state=error: certificate verify failed (unable to get local issuer certificate)