Add support for certificates using RIPEMD160 and add test for them and SHA256/512. Fix bug #11703