Most sexually active people with genital ulcers have herpes, syphilis, or chancroid. But not all genital ulcers are caused by STDs. Here’s what to expect when tested.