Add a helper function to print SSL errors.

Signed-off-by: Thiago Farina <tfarina@chromium.org>