Fixed issue with certificate loading not throwing exception.

Signed-off-by: Javier Perez-Griffo <javier@besol.es>