An Azure service that provides an event-driven serverless compute platform.
Hi @Amar,
Welcome to the Microsoft Q&A Platform! Thank you for reaching out regarding Azure Functions App with Certificate Based API Calls.
To send a certificate in an API call from your Azure Function App in Java, you can follow these steps:
Store the Certificate
- Use Azure Key Vault: This is the recommended way to store certificates securely. You can integrate Azure Key Vault with your Function App to fetch the certificate at runtime.
- App Service Environment: You can also upload the certificate directly to your Function App using the Azure Portal under the TLS/SSL settings. This will allow the app to access the certificate via environment variables.
Access the Certificate:
If using Azure Key Vault:
- Configure a managed identity for your Function App.
- Grant access to the Key Vault for the managed identity.
- Use the Azure SDK in your Java code to fetch the certificate.
If stored in App Service:
- Use the environment variable
WEBSITE_LOAD_CERTIFICATESto specify which certificates the app can access. - Access the certificate via the Java Keystore.
Microsoft documentation on using certificates in Azure Functions provides detailed guidance on secure storage and usage, including how to set up the WEBSITE_LOAD_CERTIFICATES environment variable and Key Vault integration:
Key Vault references as app settings in Azure App Service and Azure Functions
Use a TLS/SSL certificate in your code in Azure App Service
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.