Create Appointment using Nintex & Trust Relationship Error

The super awesome workflow tool Nintex comes with many inbuilt actions, in-fact you can find solution to most of your problems here. You just need to configure them.

“Create Appointment” Action under User Interaction section is one of them.

I had this requirement to create an appointment/meeting using the workflow. I got this straight-forward action – Create appointment. The configuration goes like this

Appt1

Appt2

Ensure that the URL’s (“https://[Exchange Server]/ews/exchange.asmx”) [Exchange Server] is replaced by your organization’s exchange server’s URL.

And you’re done with the configuration. Publish your workflow and create appointments using it.

But what is it, I keep getting this error in my workflow – The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

So, some research led to my below findings

This error is caused by the SSL certificate on the destination web service not being valid.  Three possible reasons being:

•    The certificate was generated by an untrusted source
•    The certificate has expired
•    The certificate name does not match the URL used to access the Web service

You can check the existing trust certificates in Central Administration > Security > Manage Trust

Now to solve this error, you need to install the root certificates into ‘SharePoint Root Authority’ as SharePoint out-of-the-box only trusts its own self signed certificate called ‘local’.  To do this, run this SharePoint power shell command – which will add all the root certificates on the local machines into SharePoint:

foreach ($cert in (Get-ChildItem cert:\LocalMachine\Root)) 
{
    if (!$cert.HasPrivateKey)
    {
        New-SPTrustedRootAuthority -Name $cert.Thumbprint -Certificate $cert 
    } 
}

Now it is done!
You can check the new trust certificates that have been added now again in Central Administration > Security > Manage Trust

Yoohooo!!! Now the appointment gets created.

You can check your outlook calendar, it is blocked. Also, the recipients will receive the email.

Advertisements

4 thoughts on “Create Appointment using Nintex & Trust Relationship Error

  1. Hi,
    I’m using Exchange 2010 with SP 2010 and SP 2013. Its worked for me in SP 2013 env but same not working for me in SP 2010.
    Same Error “The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.” Continues in SP 2010. How to Solve this.?

      • I am using Sharepoint 2010. But i cannot run powershell script on the sevrer Farm as there are many sites on it. Is there any other alternative to fix this ?

      • Hi,

        You’ll always have multiple sites in your farm, however, running this powershell command won’t cause any effect on the normal working since this solution is just to add trust certificate.

        We have implemented it on a multiple server farm here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s