pki: Allow overriding EKU flags from certificate request via command line
The flags encoded in the PKCS#10 structure (or derived from the encoded profile name) might not be appropriate in some instances. This allows overriding them without having to issue a new certificate request.
This commit is contained in:
@@ -482,8 +482,11 @@ static int issue()
|
|||||||
}
|
}
|
||||||
req = (pkcs10_t*)cert_req;
|
req = (pkcs10_t*)cert_req;
|
||||||
|
|
||||||
/* Add Extended Key Usage (EKU) flags */
|
/* Add Extended Key Usage (EKU) flags if not overridden */
|
||||||
flags |= req->get_flags(req);
|
if (!flags)
|
||||||
|
{
|
||||||
|
flags = req->get_flags(req);
|
||||||
|
}
|
||||||
|
|
||||||
/* Add subjectAltNames from PKCS#10 certificate request */
|
/* Add subjectAltNames from PKCS#10 certificate request */
|
||||||
enumerator = req->create_subjectAltName_enumerator(req);
|
enumerator = req->create_subjectAltName_enumerator(req);
|
||||||
|
|||||||
Reference in New Issue
Block a user