Enabling Secure Connection for Web Services: Update Certificate Binding

Microsoft Dynamics GPThis post is part of the Enabling Secure Connection for Web Services series.

The first step in enabling a secure connection for web services, is to bind the certificate to the port which will be used for secure access. As mentioned in the last post, I am using port 48666.

There are two commands which need to be run to bind the certificate; these need to be run via an elevated command prompt.

The first command registers the certificate for the new port; there are three parameters (highlighted) which need to be changed in the command:

  1. Port
  2. certhas which is the certificate thumbnail
  3. appid which is an arbitrary GUID; I generated a GUID using the SQL Server NEWID() command

To run an escalated command prompt, open the Start menu, type cmd, right-click on Command Prompt and click Run as Administrator.

Enter the command and hit return:

Command prompt

netsh http add sslcert ipport= certhash=f9b34290d0e54344f049a54ce4181b52fee40d8b appid={8EFC5047-33C1-438D-B76B-3634DDCF585F}

The second command adds an URL reservation; there are two parameters (highlighted) which need to be changed in the command:

  1. Port – the trailing slash is important, so make sure not to accidentally remove it.
  2. user should be set to the user account being used to run the Web Services.
Command prompt

netsh http add urlacl url=https://+:48666/ user=PI\srvc.gp

Can ISC Software help?

ISC Software Solutions are UK and Ireland based experts on Microsoft Dynamics GP. If you would like to speak to someone about support, consultancy, upgrades, implementation, development, GP Elementz add-ons or portals, or anything else Dynamics GP related, you can use the form below.

Your Name

Your Email


Your Enquiry

What should we write about next?

Your Name

Your Email

Suggested Topic

Suggestion Details

Leave a Reply

Your email address will not be published. Required fields are marked *