Skip to content

Instantly share code, notes, and snippets.

@davidoevans
Created April 22, 2019 19:17
Show Gist options
  • Save davidoevans/77236c6a1c3751fd0993785d40e4da74 to your computer and use it in GitHub Desktop.
Save davidoevans/77236c6a1c3751fd0993785d40e4da74 to your computer and use it in GitHub Desktop.
Create a PortageClient
// Load PKCS12 cer/key bundle from store
byte[] pharmacyCertificate = ReadFile("my-test-pharmacy-cert.pfx");
// Create a PortageClient instance on the https://testnet.healthchain.ca environment
PortageClient pharmacyLocationClient = new PortageClient("testnet");
// Configure the PortageClient with the application credentials
pharmacyLocationClient.setApplication(pharmacyCertificate, "passphrase");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment