Skip to content

Commit d3f851a

Browse files
committed
update readme with serverSideCertificate Collection
1 parent 1fa923e commit d3f851a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ The client needs to be registered as a service for Dependency Injection this can
3939

4040
the parameters will need to be updated for your specific mailboxes and environments.
4141
the certificate will need to be converted or created as a `.pfx` file that stores both the certificate and the private key.
42+
the serverSideCertificateCollection should be populated with the certificates of the MESH side server, This is to ensure the host connected to is the expected host.
4243

4344
```c#
4445
services.AddMeshClient(_ => _.MeshApiBaseUrl = 'MESHURL')
4546
.AddMailbox("MYMAILBOX",new NHS.MESH.Client.Configuration.MailboxConfiguration
4647
{
4748
Password = "Password",
4849
SharedKey = "SHAREDKEY",
49-
Cert = new X509Certificate2("path to .pfx file","PFX File password")
50+
Cert = new X509Certificate2("path to .pfx file","PFX File password"),
51+
serverSideCertCollection = new X509Certificate2Collection()
5052
})
5153
.Build();
5254
```

0 commit comments

Comments
 (0)