Gcr.SimpleCertificate.new

function new(data: ByteArray): Gcr.SimpleCertificate {
    // Gjs wrapper for gcr_simple_certificate_new()
}
  

Create a new Gcr.SimpleCertificate for the raw DER data. The data memory is copied so you can dispose of it after this function returns.

data

the raw DER certificate data

Returns

a new Gcr.SimpleCertificate