Lines Matching defs:issuer
74 int cert_add_ext(X509 *issuer, X509 *subject, int nid, char *value)
82 /* Set issuer and subject certificates in the context */
83 X509V3_set_ctx(&ctx, issuer, subject, NULL, NULL, 0);
104 cert_t *issuer_cert = &certs[cert->issuer];
106 X509 *issuer = issuer_cert->x;
121 /* If we do not have a key, use the issuer key (the certificate will
127 /* If we do not have an issuer certificate, use our own (the certificate
129 if (!issuer) {
130 issuer = x;
139 /* Sign the certificate with the issuer key */
192 cert_add_ext(issuer, x, NID_subject_key_identifier, "hash");
193 cert_add_ext(issuer, x, NID_authority_key_identifier, "keyid:always");
195 cert_add_ext(issuer, x, NID_basic_constraints, "CA:TRUE");
196 cert_add_ext(issuer, x, NID_key_usage, "keyCertSign");
198 cert_add_ext(issuer, x, NID_basic_constraints, "CA:FALSE");