Help identifying possible STI

image

I have these two crater like sores, one larger than the other. This had happened once before and I went to the clinic and they gave me ointment. is this possibly just a skin infection or does this look like herpes or some other STI? Please help me identify this. Thanks in advance.