Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 3.1 KB

README.md

File metadata and controls

53 lines (30 loc) · 3.1 KB

Postman

A collection of Postman requests have been included to demonstrate the functionality of the Mock Data Holder.

In order to use the Postman requests:

  1. Go to https://www.postman.com/downloads/ to download and install the Postman app.
  2. Once installed, open the Postman app.
  3. In the Collections section, click on the Import button.

Postman - Mock Data Holder Collection - Step 3

  1. Ensure that the mock-data-holder.postman_collection.json file has been downloaded to the local device (git clone or downloaded).
  2. Browse for the mock-data-holder.postman_collection.json file from the Files tab.

Postman - Mock Data Holder Collection - Step 5

  1. Click on the Import button.

Postman - Mock Data Holder Collection - Step 6

  1. The Mock Data Holder collection should now be available in the Postman app.

Postman - Mock Data Holder Collection - Step 7

In order to make the mTLS requests (https://localhost:8001) in the Mock Data Holder collection, a client certificate needs to be added in the Postman app. To add the client.pfx certificate:

  1. In the Postman app, click on the Settings option from the File menu.

Postman - Client Certificate - Step 1

  1. In the Settings window, click on the Certificates tab and then on the Add Certificate option.

Postman - Client Certificate - Step 2

  1. Add the server.pfx certificate for all requests to https://localhost:8001.
  • The server.pfx file can be found in the Mock Data Holder repository at: CertificateManagement/mTLS/server.pfx.
  • The password for the server.pfx certificate is #M0ckDataHolder#

Postman - Client Certificate - Step 3

  1. The server.pfx certificate should now be sent to all Postman requests to the Mock Data Holder mTLS endpoint - https://localhost:8001.

  2. In order to simulate requests from the Mock Data Recipient to the Mock Data Holder, a client certificate needs to be added in the Postman app. To add the client.pfx certificate you will need to obtain a copy from the Mock Data Recipient reopsitory.

  3. Add the client.pfx certificate for all requests to https://localhost:8002.

Postman - Client Certificate - Step 4

Postman - Client Certificate - Step 5