Hi @Aakansha Srivastava ,
Load the certificate from the appropriate store location in your code. The following snippet is for a Windows hosted app service. For Linux, you load it as file from /var/ssl/private, if I'm not mistaken.
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
import java.security.KeyStore;
import java.security.cert.Certificate;
import java.security.PrivateKey;
...
KeyStore ks = KeyStore.getInstance("Windows-MY");
ks.load(null, null);
Certificate cert = ks.getCertificate("<subject-cn>");
PrivateKey privKey = (PrivateKey) ks.getKey("<subject-cn>", ("<password>").toCharArray());
// Use the certificate and key
...
Also make sure WEBSITE_LOAD_CERTIFICATES
is to 1 under application settings.