Allow check for fingerprint anywhere in the certificate signing chain

I added a new API "checkInCertChain" allowing fingerprints to be checked against the server certificate or any certificate in the signing chain.
This allow pinning to a Certificate Authority certificate what can be good enough from a security viewpoint and would avoid changing fingerprints in case of server certificate renewal is if same CA is used.