Skip to content

davidz25/MpzIdentityReader

Repository files navigation

This is a Compose Multiplatform project targeting Android, iOS.

This is a ISO/IEC 18013-5:2021 proximity reader for requesting credentials built using the Multipaz SDK. It includes a backend component for certifying reader authentication keys.

Learn more about Multipaz

Learn more about Compose Multiplatform

Learn more about Kotlin Multiplatform

This is not an official or supported Google product.

Generating reader keys for import

You can generate PKCS#12 files for reader keys using the multipazctl and openssl command-line tools. First create a reader root for a fictional Relying Party Utopia Brewery:

$ multipazctl generateReaderRoot --subject_and_issuer 'CN=Utopia Brewery Reader CA,O=Utopia Brewery,C=ZZ'
- Generated self-signed reader root cert and private key with curve P384
- Wrote reader root private key to reader_root_private_key.pem
- Wrote reader root cert to reader_root_certificate.pem

then create a reader certificate for user Bob Bobson, an employee of Utopia Brewery:

$ multipazctl generateReaderCert --subject 'CN=Bob Bobson,O=Utopia Brewery,C=ZZ'
- Generated Reader cert and private key with curve P256
- Loaded reader root cert from reader_root_certificate.pem
- Loaded reader root private key from reader_root_private_key.pem
- Wrote reader private key to reader_private_key.pem
- Wrote reader cert to reader_certificate.pem

Finally, create the PKCS#12 file like this:

$ openssl pkcs12 -export -out reader_key_and_certchain.p12 -inkey reader_private_key.pem -in reader_certificate.pem -certfile reader_root_certificate.pem
Enter Export Password:
Verifying - Enter Export Password:

twice entering a passphrase to protect the key. The resulting file can be sent to Bob Bobson (sharing the passphrase out of band) and they can install it into the Multipaz Identity Reader.

About

Identity Reader App built using Multipaz

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages