REST API call using p12 certificate file in groovy

How to make https REST API call using p12 certificate file and password in groovy?