Updated RestCommand to handle Cert issue