• D
    x509_vfy.c: Restore rejection of expired trusted (root) certificate · 3bed88a3
    Dr. David von Oheimb 提交于
    The certificate path validation procedure specified in RFC 5280 does not
    include checking the validity period of the trusted (root) certificate.
    Still it is common good practice to perform this check.
    Also OpenSSL did this until commit 0e7b1383, which accidentally killed it.
    
    The current commit restores the previous behavior.
    It also removes the cause of that bug, namely counter-intuitive design
    of the internal function check_issued(), which was complicated by checks
    that actually belong to some other internal function, namely find_issuer().
    
    Moreover, this commit adds a regression check and proper documentation of
    the root cert validity period check feature, which had been missing so far.
    
    Fixes #13427
    Reviewed-by: NTomas Mraz <tmraz@fedoraproject.org>
    (Merged from https://github.com/openssl/openssl/pull/13590)
    3bed88a3
X509_STORE_set_verify_cb_func.pod 11.4 KB