Gcr.CertificateChain.prototype.add

function add(certificate: Gcr.Certificate): void {
    // Gjs wrapper for gcr_certificate_chain_add()
}
  

Add certificate to the chain. The order of certificates in the chain are important. The first certificate should be the endpoint certificate, and then come the signers (certificate authorities) each in turn. If a root certificate authority is present, it should come last.

Adding a certificate an already built chain (see Gcr.CertificateChain.prototype.build) resets the type of the certificate chain to Gcr.CertificateChainStatus.unknown

certificate

a Gcr.Certificate to add to the chain