web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Connect to SSL webservice from Dynamics 365

(0) ShareShare
ReportReport
Posted on by 10

Hi,

Situation:

In Dynamics we want to do an address validation on the OnChange event. Normally we would use this path: 

Javascript -> Validation Webservice -> Valid or not a valid address

Now, in my current environment, my client requires 2 way SLL (so with Certifcates) when accessing the validation service. 

What are my possibilities to accomplish this

- Plugin (impossible because of sandbox so no SSL specific libraries available)

- Via Azure function to the SSL webservice: questionable because this results in a public endpoint which can be DDOS-ed for example)

Other way would be a Logic App that is triggered on Add Record for that Entity, but this takes time, so no real-time validation.

ANy help would be appreciated.

Rob

I have the same question (0)
  • Guido Preite Profile Picture
    54,086 Moderator on at

    can you expand regarding this part?

    "Now, in my current environment, my client requires 2 way SSL (so with Certifcates) when accessing the validation service."

    thanks

  • RobJoosen Profile Picture
    10 on at

    Sure. This is a service on AWS, which is secured. We need client-certificates to access this service. The server has the Server Certificate and from Dynamics we are required to provide a Client Certificate.

    (I'm no security expert so be gentle...)

  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    I understood, practically it's required to use custom certificates in order to call the endpoint.

    let's put aside javascript because if it's a client side, you need to make the certificate readable also by the client and this in my opinion is a more questionable practice

    I never tried it with a plugin (so it may work, I know that if you google you get people not able to have results but in my opinion it's worth a shot), first of all I would try with a simple console application (probably it's required this namespace System.Security.Cryptography.X509Certificates and having the certification file, keep in mind that you can't load an external file inside a plugin but you can convert the content to a base64 string and put that string inside the plugin) and after move the logic to a plugin. Also the plugin will be triggered on the create/update of the record, not real-time as a js onchange event.

    if the plugin approach doesn't work then I suggest an azure function, yes, it theoretically can be DDOS-ed but it's a address autocomplete service, worst case scenario the service doesn't work but doesn't get exploited.

    hope it helps

  • RobJoosen Profile Picture
    10 on at

    Thanks,

    We've noticed that the Plugin way is not working due to Security Exceptions.

    Hopefully we can find another way, maybe obfuscate the Azure function or something like that.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans