Skip to content

SelfSignedKeySource ​

SelfSignedKeySource ​

Where createSelfSignedCertificate gets its key pair.

Supplying keyPair makes algorithm unreachable, since generation is skipped.

ts
type SelfSignedKeySource = {
  readonly keyPair: KeyPairMaterial;
  readonly algorithm?: never
} | {
  readonly keyPair?: never;
  readonly algorithm?: KeyAlgorithmInput
}

Released under the MIT License.