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=0.0.0.0:48666 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

What should we write about next?

If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.

Your Name

Your Email

Suggested Topic

Suggestion Details

Looking for support or consultancy with Microsoft Dynamics GP?

I no longer work with Microsoft Dynamics GP, but the last company I worked for was ISC Software in the UK; if you're looking for support or consultancy services with Microsoft Dynamics GP you can contact them here.

Leave a Reply

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