I have Azure Function deployed in Linux App Service Plan P2v3.
On the left pane I can go to Settings and then Certificates. After clicking Bring your own certificates (.pfx) I can see cert DEV2APP.
I tried to get it from Azure Function this way:
KeyStore ks = KeyStore.getInstance(storeType);
log.info("certifStore path=" + certificateStore);
File certFile = new File(certificateStore);
log.info("isFile: " + certFile.isFile());
log.info("can read: " + certFile.canRead());
but it didn't work. In Azure Function logs I can see:
certifStore path=/home/certs/DEV2APP.pfx
[Info] isFile: false
[Info] can read: false
How can I get this certificate from Azure Function?