add the handler of exception if the RSA key is too small