Use custom SSL context for certificate trust also when key is not available

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>