Enabling Secure Connection for Web Services: Update Certificate Binding

July 23rd, 2018 by

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 NEW_ID 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:

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.

netsh http add urlacl url=https://+:48666/ user=PIsrvc.gp

Click to show/hide the Enabling Secure Connection for Web Services Series Index

Read original post Enabling Secure Connection for Web Services: Update Certificate Binding at azurecurve|Ramblings of a Dynamics GP Consultant

Source: azurecurve

Leave a Reply