Gcr.CertificateRequest.prototype.encode

function encode(textual: Boolean): [return_value: ByteArray, length: Number(gsize)] {
    // Gjs wrapper for gcr_certificate_request_encode()
}
  

Encode the certificate request. It must have been completed with Gcr.CertificateRequest.prototype.complete or Gcr.CertificateRequest.prototype.complete_async

If textual is false, the output is a DER encoded certificate request.

If textual is true, the output is encoded as text. For PKCS\#10 requests this is done using the OpenSSL style PEM encoding.

textual

whether to encode output as text

return_value

the encoded certificate request

length

location to place length of returned data