Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Connect to SSL webservice from Dynamics 365

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

  • RobJoosen Profile Picture
    RobJoosen 10 on at
    RE: Connect to SSL webservice from Dynamics 365

    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.

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Connect to SSL webservice from Dynamics 365

    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
    RobJoosen 10 on at
    RE: Connect to SSL webservice from Dynamics 365

    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...)

  • Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Connect to SSL webservice from Dynamics 365

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans