SSL certificate problem: self signed certificate in certificate chain