It seems the standard advice on the Internet for increasing your testosterone levels is to do back squats and avoid cardio. A review of the studies showed this advice is questionable for older men. The review concludes:
"Data from the present investigation suggests that resistance training does not significantly influence basal testosterone in older men. Magnitude of effect was influenced by hormone fraction, even within the same investigation. Aerobic training and interval training did result in small, significant increases in basal testosterone. The magnitude of effect is small but the existing data are encouraging and may be an avenue for further research."
"Data from the present investigation suggests that resistance training does not significantly influence basal testosterone in older men. Magnitude of effect was influenced by hormone fraction, even within the same investigation. Aerobic training and interval training did result in small, significant increases in basal testosterone. The magnitude of effect is small but the existing data are encouraging and may be an avenue for further research."