I am in this case, for whom interested
Code:
http://bugzilla.zimbra.com/show_bug.cgi?id=45048#c31
I'd get x509 hash of ldap_master_ca_2048.pem and I am noting that using c_rehash and
Code:
openssl x509 -hash -noout -in cert.pem
give different hash, as below:
Code:
# /opt/zimbra/conf # cp -a ca /root/
# cd /root/ca
# /opt/zimbra/openssl-1.0.0d/bin/c_rehash .
Doing .
commercial_ca_1.pem => 578d5c04.0
ldap_master_ca_2048.pem => 2c543cd1.0
WARNING: Skipping duplicate certificate commercial_ca.pem
ca.pem => 3a1412e5.0
~/ca # ls -la
total 32
drwxr-xr-x 2 zimbra zimbra 4096 Jun 19 10:10 .
drwxr-x--- 10 root root 4096 Jun 19 10:09 ..
lrwxrwxrwx 1 root root 23 Jun 19 10:10 2c543cd1.0 -> ldap_master_ca_2048.pem
lrwxrwxrwx 1 root root 6 Jun 19 10:10 3a1412e5.0 -> ca.pem
lrwxrwxrwx 1 root root 19 Jun 19 10:10 578d5c04.0 -> commercial_ca_1.pem
-rw-r----- 1 zimbra zimbra 891 Apr 3 12:16 ca.key
-rw-r----- 1 zimbra zimbra 960 Apr 3 12:16 ca.pem
-rw-r--r-- 1 zimbra zimbra 1143 Apr 3 12:16 commercial_ca_1.pem
-rw-r--r-- 1 zimbra zimbra 1143 Apr 3 12:16 commercial_ca.pem
-rw-r--r-- 1 zimbra zimbra 2607 Jun 19 10:05 ldap_master_ca_2048.pem
but using openssl:
Code:
~/ca # openssl x509 -hash -noout -in ldap_master_ca_2048.pem
7999be0d
what am I missing?
why calculated hashes differ?
which one is that right? 7999be0d or 2c543cd1 ?