From the description it seems, you could be having syphilis
. It is better to consult a dermatologist
so that the lesions can be clinically examined and proper investigations specially VDRL
in dilution can be done.
If the results come out positive, do not worry as syphilis is treatable with intramuscular penicillin injection
Hope that helps. Take care