Class ExampleScenario13
Object
ExampleScenario13
Scenario 13 Example:
- Create a temporary PKCS#12 file containing an RSA keypair + self-signed cert.
- Import that .p12 into the encryption service as a new kid.
- Sign a file (streaming) using that kid.
- Export the key data from that kid (the entire JSON, which includes public key information).
- Encrypt using that kid (non-streaming).
- Decrypt using that same kid (private key) in the encryption service.
This scenario demonstrates how to handle a PKCS#12 file and import it into the service using the updated AnkaSecureSdk methods.