1X509_CHECK_ISSUED(3) OpenSSL X509_CHECK_ISSUED(3)
2
3
4
6 X509_check_issued - checks if certificate is apparently issued by
7 another certificate
8
10 #include <openssl/x509v3.h>
11
12 int X509_check_issued(X509 *issuer, X509 *subject);
13
15 X509_check_issued() checks if certificate subject was apparently issued
16 using (CA) certificate issuer. This function takes into account not
17 only matching of the issuer field of subject with the subject field of
18 issuer, but also compares all sub-fields of the authorityKeyIdentifier
19 extension of subject, as far as present, with the respective
20 subjectKeyIdentifier, serial number, and issuer fields of issuer, as
21 far as present. It also checks if the keyUsage field (if present) of
22 issuer allows certificate signing. It does not check the certificate
23 signature.
24
26 Function return X509_V_OK if certificate subject is issued by issuer or
27 some X509_V_ERR* constant to indicate an error.
28
30 X509_verify_cert(3), X509_check_ca(3), verify(1)
31
33 Copyright 2015-2020 The OpenSSL Project Authors. All Rights Reserved.
34
35 Licensed under the OpenSSL license (the "License"). You may not use
36 this file except in compliance with the License. You can obtain a copy
37 in the file LICENSE in the source distribution or at
38 <https://www.openssl.org/source/license.html>.
39
40
41
421.1.1q 2022-07-21 X509_CHECK_ISSUED(3)