error messages for pkix
fixed cert loading