Signing and certificates
tip
Be sure to read Getting started for some basic background on public-key infrastructure (PKI) technology, certificates, and signing manifests.
As you're developing an application that uses the CAI SDK, there are three ways to sign manifest claims, depending on where you are in your development process:
- Initial prototyping and development: Use the test certificates and keys included with the SDK libraries to sign claims. These certs and keys are provided for convenience, but aren't valid for actual signing.
- Local/internal testing: Once your code is working with the test certs and keys, you can move on to:
- Purchase your own certificate from a certificate authority (CA).
- Use the certificate and key locally (directly from the file system) to sign manifest claims. IMPORTANT: this is not safe in production.
- Production testing/deployment: To secure your private key for use in a publicly-accessible production application, store it in a hardware security module (HSM) or key management service (KMS) where your application can access it securely .
note
Best practices for handling keys and certificates are beyond the scope of this documentation. Always protect your private keys with the highest level of security; for example, never share them through insecure channels such as email.