debugging SSL self-signed cert issues