Fixed self-signed certificate issue