Workaround for remote server certificate chain issues