You can ref : <<JMeter proxy Step-by-stepJMeter proxy Step-by-step>> attachment from jmeter domentation.
for https application, you can record the http application first, and then replace the http to https, and change the protocal from http to https in the HTTP Request Defaulfs --> HTTP Request-->Protocol[http] panel.