docusign / docusign-esign-csharp-client

The Official Docusign C# Client Library used to interact with the eSignature REST API. Send, sign, and approve documents using this client.
https://developers.docusign.com/docs/esign-rest-api/sdks/csharp/
MIT License
130 stars 159 forks source link

EnvelopesAPI - Creating envelop exception on live #311

Closed cesar-albusac closed 3 years ago

cesar-albusac commented 3 years ago

I just finished the go live process, and I created the new keys and I am using them as well. But I got this error

Error calling CreateEnvelope: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

I am using a c# application. The exception is thrown in the Create Envelope method:

EnvelopeDefinition Envelope = new EnvelopeDefinition
            {
                EmailSubject = EmailSubject,
                Documents = EnvelopeDocuments,
                Recipients = new Recipients { Signers = Signers },
                Status = "sent"
            };

            return GetEnvelopesApi().CreateEnvelope(_AccountId, Envelope).EnvelopeId;

Where GetEnvelopesApi just call the public EnvelopesApi(Configuration configuration = null); of docusign.esign.api :

 private EnvelopesApi GetEnvelopesApi()
        {
            ApiClient Client = new ApiClient("https://docusign.net/restapi");

            Client.Configuration.AddDefaultHeader("Authorization", "Bearer " + GetAccessToken());

            return new EnvelopesApi(Client.Configuration);
        }
cesar-albusac commented 3 years ago

https://stackoverflow.com/questions/66600067/docusign-c-sharp-createenvelope-error-could-not-establish-trust-relationship-f/66628396#66628396