Skip to content

GetPublicKeyCertificate

Source: src/AWS/PaymentCryptography/GetPublicKeyCertificate.ts

Runtime binding for payment-cryptography:GetPublicKeyCertificate — exports the public-key certificate (and its root certificate chain) of an asymmetric key pair Key, e.g. to share the public verification key with a partner. The private key never leaves the service. Provide GetPublicKeyCertificateHttp on the Function to satisfy this service.

// init
const getPublicKeyCertificate =
yield* PaymentCryptography.GetPublicKeyCertificate(signKey);
// runtime — both fields are base64-encoded certificates
const { KeyCertificate, KeyCertificateChain } =
yield* getPublicKeyCertificate();