How to Generate and Use SSL Certificates in Microsoft Dynamics 365 Business Central
How to Generate and Use SSL Certificates in Microsoft Dynamics 365 Business Central
external systems such as APIs, payment gateways, banks, IRIS, VAT systems, or third-party services, SSL/TLS certificates play a key role in securing communication.
A common misconception is that Business Central itself generates SSL certificates. In reality, Business Central only consumes certificates—the generation and management are handled externally.
In this blog, we will cover:
What SSL certificates are in the context of Business Central
How to generate an SSL certificate (self-signed)
How to configure it for Business Central (On-Prem)
Common use cases and best practices
What Is an SSL Certificate in Business Central?
An SSL (Secure Sockets Layer) / TLS certificate is used to:\Hook:
Encrypt data during transmission
Authenticate systems or services
Enable secure API communication
In Business Central, certificates are commonly used for:
API authentication
Web services
Bank integrations
Government portals (VAT, IRIS, GST, etc.)
Azure Functions or Logic Apps authentication
⚠️ Important: Business Central does not create SSL certificates—it only stores and uses them.
Steps to Generate an SSL Certificate (Self-Signed)
This approach is typically used for development or on-premises environments.
Step 1: Create a Self‑Signed Certificate in IIS
Open IIS Manager as Administrator.
Select the server node in the left panel.
Open Server Certificates.
Click Create Self‑Signed Certificate.
Step 2: Provide Certificate Details
Enter a Friendly Name for the certificate.
Select the Certificate Store (usually Personal).
Click OK to create the certificate.
Step 3: Copy the Certificate Thumbprint
Right‑click the newly created certificate.
Select View → Details.
Locate Thumbprint.
Copy the thumbprint value and save it in Notepad.
This thumbprint will be required in the next step.
Step 4: Configure Certificate Using PowerShell
Open Windows PowerShell ISE as Administrator.
Run the required PowerShell commands.
After the -KeyValue parameter, paste the certificate thumbprint.
Step 5: Verify Required Properties
Ensure all required certificate properties are set to True, including:
Exportable key
Client authentication
Server authentication
Step 6: Bind the Certificate in IIS
Open IIS Manager.
Navigate to: Microsoft Dynamics 365 Business Central site.
Open Bindings.
Remove the existing HTTPS (443) binding (if any).
Click Add:
Type: HTTPS
SSL Certificate: Select the newly created certificate
Click OK.
Step 7: Add Certificate Using MMC
Press Win + R, type mmc.exe, and press Enter.
Go to File → Add/Remove Snap‑in.
Select Certificates.
Choose Computer Account → Local Computer.
Click Finish → OK.
Step 8: Verify Certificate Installation
The certificate should now be visible under:
Step 9: Grant Permissions to Business Central Service
Right‑click the certificate.
Select All Tasks → Manage Private Keys.
Click Add.
Add NETWORK SERVICE.
Grant Allow – Full Control.
Click Apply → OK.
This ensures the Business Central service can access the certificate.
Conclusion
SSL certificates are a core security component in Business Central integrations. While Business Central does not generate certificates, it provides robust mechanisms to store and consume certificates securely in both cloud and on‑prem environments.
Understanding the generation, configuration, and usage flow ensures secure, compliant, and reliable integrations.
NOTE FOR SSL CERTIFICATE SERVER NAME AND CERTIFCATE MUST BE SAME AND IT SHOULD BE INCLUDED IN ALL TRUSTED DOCS