[TIMOB-16213] Added check for SHA256withRSA certs and improved keystore ...

...alias handling.