Closed rahulmah closed 4 years ago
My mistake it is not just the subject name and issuer name it is also serial number of the certificate that is considered when assuming it as a duplicate certificate.
[devenrao]$ openssl x509 -in server1.crt -serial -noout serial=F6A66BB9A97533A2 [devenrao]$ openssl x509 -in server2.crt -serial -noout serial=CE3773F72968044D
please do also check if the serial number is also same.
Basically if we upload the same certificate again and again it should not be allowed, but generated multiple times will have different serial number.
Earlier we used to just check subject name, but we had issues with that so we added issuername and serial number of the certificate too.
Id is a combination of unsigned long subjectNameHash = X509_subject_name_hash(cert.get()); unsigned long issuerSerialHash = X509_issuer_and_serial_hash(cert.get());
Able to multiple upload CA certificate with same subject and issue name.
BMC fw details: