TLS/SSL connection publish error from maya

I’m getting a publishing error when attempting to publish from maya.

Initially the error was:

ShotgunPublishError: Unable to complete publishing because of the following error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]

Then I ran:

$cert_url = “https://www.amazontrust.com/repository/SFSRootCAG2.cer
$cert_file = New-TemporaryFile
Invoke-WebRequest -Uri $cert_url -UseBasicParsing -OutFile $cert_file.FullName
Import-Certificate -FilePath $cert_file.FullName -CertStoreLocation Cert:\LocalMachine\Root

Now i’m getting this error:

ShotgunPublishError: Unable to complete publishing because of the following error: <urlopen error TLS/SSL connection has been closed (EOF) (_ssl.c:590)>,

Any idea what this is and how to get rid of it?

Hope you’ve solved this problem.
I had same problem and solved it as below.

  1. download cacert.pem from github(https://raw.githubusercontent.com/certifi/python-certifi/master/certifi/cacert.pem)
  2. set environment variable in your computer(SHOTGUN_API_CACERTS=“the cacert.pem path”)
  3. restart your maya session
    Using Shotgun Desktop behind an firewall with SSL introspection
1 Like