change curl calls to accept selfsigned certificates