Skip to content

API for generating wallet passes from Ontario Vaccination Receipt

Notifications You must be signed in to change notification settings

billylo1/CovidPassApiNet

 
 

Repository files navigation

CovidPassApiNet

C# implementation of the CovidPass API

Pre-req: brew install dotnet docker https://dotnet.microsoft.com/en-us/download/dotnet

for setup instructions, and cert renewal

setup Apple Developer Certificate (assume current directory is the above)

    1. Sign into your Apple Developer Account
    2. Go to Certificates, Identifiers and Profiles
    3. Register a new Pass Type Identifier under the Identifiers tab
    4. Create a new Pass Type ID Certificate under the Certificates tab
    5. Select your previously created Pass Type Identifier in the process
    6. Move your new certificate to the My Certificates tab in the keychain
    7. Export your certificate as a .p12 file (make a note of passphrase)
    8. Convert .p12 to .pem using openssl
           openssl pkcs12 -in Certificates.p12 -out AppleDeveloperCerticate.pem -legacy
    9. copy the .pem file to ~/web/CovidPassApiNet/CovidPassApiNet/AppleDeveloperCerticate.pem
    10. Create a text file named AppleDeveloperPassword with your passphrase in it
    11. Open keychain - System Keychain - Certificates
    12. Export Apple Developer Relations Certification Authority to AppleCaCertificate.pem
    13. chmod 600 Apple*.pem 

    (Reminder: pls protect these files as they contain private key and passphrases. Do not add them to your repo.)

About

API for generating wallet passes from Ontario Vaccination Receipt

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 90.9%
  • Dockerfile 5.8%
  • Shell 3.3%