Hi Rich.. Thanks.. We want to add a check in our openssl library on client side to reject such server certificate which are generated by the intermediate CA with missing extensions like basic constraints.. How do we go about it?
I looked at the code. In crypto/x509v3/v3_purp.c I see that check_ca is there. But it is getting called only for server certificate. Thanks Sandeep On Thu, May 31, 2018, 11:39 PM Salz, Rich via openssl-users < openssl-users@openssl.org> wrote: > > - We generated intermediate02 such that it has "basicConstraints" > extension and "keyUsage" missing. Now we used this intermediate 02 CA to > sign server certificate. > > > > If those extensions, which are **optional,** are not present, then there > is no limit on how the keys may be used, or how long the cert chain may > be. OpenSSL is doing the right thing. > > > > If you want to add them, and you cannot upgrade, then read about the > openssl config file syntax. Good luck. > -- > openssl-users mailing list > To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users >
-- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users