Many of the anti-fungal azoles inhibit cytochrome enzymes, which are crucial in steroidal synthesis. Clotrimazole, ketoconazole, miconazole, itraconazole, etc. all have been shown to inhibit testosterone synthesis, estrogen synthesis (aromatase), cortisol synthesis, at varying degrees.
They are not useful for any of these purposes since they cross react with too many steroid pathways, eg. will suppress aromatase, but also suppress test production. Also, they are relatively toxic.