saveX509Credential

suspend fun saveX509Credential(enrollment: E2EIEnrollment, certificateChain: String): List<String>?

Saves a new X509 credential. Requires first having enrolled a new X509 certificate with either e2eiNewActivationEnrollment or e2eiNewRotateEnrollment

Expected actions to perform after this function (in this order)

  1. Rotate credentials for each conversation in e2eiRotate

  2. Generate new key packages with generateKeyPackages

  3. Use these to replace the stale ones the in the backend

  4. Delete the stale ones locally using deleteStaleKeyPackages

    • This is the last step because you might still need the old key packages to avoid an orphan welcome message

Return

Potentially a list of new certificate revocation list distribution points discovered in the certificate chain

Parameters

enrollment
  • the enrollment instance used to fetch the certificates

certificateChain
  • the raw response from ACME server