The keystone-voms module fails when the hash start with '0'
Created by: Pansanel
Using the last version of the keystone-voms module, I get the following error: ERROR keystone.common.wsgi FileError: Cannot load file /etc/grid-security/certificates/e635db3.0: [Errno 2] No such file or directory: '/etc/grid-security/certificates/e635db3.0'
The functions computing the hash: https://github.com/IFCA/keystone-voms/blob/stable/mitaka/keystone_voms/voms.py#L128 https://github.com/IFCA/keystone-voms/blob/stable/mitaka/keystone_voms/voms.py#L142 https://github.com/IFCA/keystone-voms/blob/stable/mitaka/keystone_voms/voms.py#L146 are removing the '0' in front of the hash.
The hash should be 0e635db3:
openssl x509 -noout -hash < /etc/grid-security/certificates/SRCE.pem
0e635db3