Software AG webMethods.io B2B authenticating inbound transaction using 2-way SSL
Tags: b2b, tutorial, authentication, ssl
Published: 2021-09-15 14:20:56

---
title: Software AG webMethods.io B2B authenticating inbound transaction using 2-way SSL
published: true
date: 2021-06-30 08:23:47 UTC
tags: #b2b, #tutorial, #authentication, #ssl
canonical_url: https://tech.forums.softwareag.com/t/webmethods-io-b2b-authenticating-inbound-transaction-using-2-way-ssl/242478
---

## Introduction

This article explains how the inbound transaction can be authenticated using 2 way SSL mechanism.

## Audience

It is assumed that readers of this article know how to setup B2B enterprise profile and partner on [webMethods.io](http://webMethods.io) B2B platform.

## Prerequisites

- Set up B2B enterprise profile, partner profile, Business Document
- Working inbound transaction in B2B platform

### Topics Covered

- What is 2-way SSL?
- Generating certificates for 2-way SSL
- Configure the certificates at partner profile
- Invoking the transaction using postman client

## Use Case:

- We will implement the 2-way SSL authentication mechanism for inbound transaction.
- When the request is submitted by client along with certificates, request will get authenticated with public certificate available on partner profile.
- Post authentication request can be seen on monitor tab.

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/f/4/f4740c04805e1741222a3c517d62f9adf3ded227.png)

### What is 2 way SSL authentication?

- In two-way SSL authentication, the client application verifies the identity of the server application, and then the server application verifies the identity of the client application. Both parties share their public certificates, and then validation is performed. Two-way SSL authentication works with a mutual handshake by exchanging the certificates.

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/5/e/5ece6a927366b41307c212bfc1fbda6cb04cc8fa.png)

### Generate the 2-way SSL certificates

- Navigate to the partner profile for which you want to implement the inbound transaction.
- In our case it will be Reliance partner
- Navigate to the certificate tab
- Click on Add partner certificate → 2 way SSL/TLS

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/d/e/de702baaed2a5a052f9df546eb400c7ad4f44a97.png)

- We can either generate the certificate or upload the certificate.

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/1/9/196e3e4292091d64a9d6124a8fb15038e333eaf2.png)

### Configure the certificates at partner profile

## Case1: Upload the certificate

- In case of upload, provide the certificate in .der.cer format
- Provide the common name for the certificate and then click on save

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/1/8/188a208aef5184048fcd28b68ae875eaab9d12aa.png)

## Case2 : Generate the certificate

- Select the generate option
- You will notice the mandatory field like common name is auto populated.
- Click on save
- Once you click on save the pfx file get downloaded which contains the public key and private key.
- Please note once the file is downloaded, certificate private key won’t be available on the portal.
- You can download the public key as many as times as you want but Incase if the private key is misplaced, we need to again generate the certificates.

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/9/a/9a264d2862e4bcf8e4a65f1dae0c81ab62c5df71.png)

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/3/a/3a2fb6d20897288e4b86ac63418d287712675241.png)

### Endpoints for 2-way SSL

- In B2B to have connectivity using 2 way SSL request needs to be hit on specific port.
- B2B product exposes the 8443 port and this port is responsible for handling all the 2-way SSL request  
**For example**

**Inbound URL :**  
[https://tenanatName.int-aws-us.webmethods.io/b2b/routes/channel/](https://tenanatName.int-aws-us.webmethods.io/b2b/routes/channel/)

### Inbound URL for 2 way SSL:

[https://tenanatName.int-aws-us.webmethods.io:8443/b2b/routes/channel/](https://tenanatName.int-aws-us.webmethods.io:8443/b2b/routes/channel/)

### Invoking the transaction using postman client

- Navigate to the postman client

- Click on settings–> Certificates

- Provide the hostname: .int-aws-us.webmethods.io

- Port: 8443

- Either provide the certificate and key or provide the pfx file

- Provide the password, in our case by default certificate generated from B2B have password “ **changeit** ”

- In our case we will provide the .pfx file which we generated from B2B portal

- Click Add  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/8/d/8d1ffd3f25c9ca60f4cd70778e51ff7b21a983cd.png)

- Provide the username and password under the basic authentication.

- Trigger the request.

**Note:** Even though we are using 2 way ssl certificate for authentication but we still need to pass the credentials for authentication to happen at channel level.

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/0/1/016011b39807ba63b9fa49a342828d3b83cccf55.png)

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/9/9/99018660afef9f3d9f256cbe0d4a2fbe6677ec6c.png)

[Read full topic](https://tech.forums.softwareag.com/t/webmethods-io-b2b-authenticating-inbound-transaction-using-2-way-ssl/242478)