I have a certificate in azure key vault which i don't want to import to the signing machine. instead i want to use that certificate to sign a jar file by authenticating to azure key vault or some other way. Is there any way to achieve this. Thanks in advance
Can i use azure key vault to sign a jar file using jarsigner
771 Views Asked by YouBee At
2
There are 2 best solutions below
0
Emmanuel Bourg
On
You can use the Jsign JCA provider to use an Azure KeyVault key with jarsigner.
The syntax looks like this:
jarsigner -J-cp -Jjsign.jar -J--add-modules -Jjava.sql \
-providerClass net.jsign.jca.JsignJcaProvider \
-providerArg <vault-name> \
-keystore NONE \
-storetype AZUREKEYVAULT \
-storepass <api-access-token> \
application.jar <key-name>
(disclaimer: I'm the author of this project)
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in AZURE-KEYVAULT
- Unable to connect to Azure Keyvault when I deploy ASP.NET Core 6 Web API (C#) , the docker image to docker desktop app
- Automating key rotations for resources used in an application
- Entra authentication without storing secrets or certificate information in client code
- Does Install4j support code signing using Azure Key Vault?
- Error Fetching Azure Key Vault Secret in Fabric Notebook for Azure SQL Database JDBC Connection
- Azure Key Vault Logs: Success with Forbidden ResultSignature
- Pass An Azure Key Vault Secret To The Azure Databricks Spark Submit Job Using Parameters
- How to add new secrets (from Azure Key Vault) to the variable group in Azure Devops
- Authentication to Azure Key Vault
- Terraform Pipeline Key Vault secret deployment with Private Endpoint
- Prevent user login to Azure App Registration
- unable to link customer managed key within azure storage account get the error Your system-assigned identity does not have access to the key vault
- Trying to understand why Azure App access is more secure with Certificate vs Secret
- Running databricks notebooks in ADF: "Invalid client secret provided"
- Script Hangs in Windows 10 While Accessing Azure Key Vault Secrets, Works in Windows 11: Need Assistance
Related Questions in JARSIGNER
- Can't install after recompiled android code
- jarsigner keeps on working after code signing certificate expired and openwenstart is also ok with it?
- How to sign jar by jarsigner from Gradle task?
- Read out Ca Certificate from .RSA File in Java
- Terminate Linux script if jarsigner verifies a jar that is unsigned
- Move a Xamarin Android native app from VS2022 to VSCode
- jarsigner default signature algorithm fails
- Sign a JAR file using Jenkins Pipeline
- .NET MAUI Android Build Fails on GitHub Actions with jarsigner.exe Exited with Code 1
- JAR signing stops someone from modifying a JAR, but what stops someone from swapping the JAR with their own that they've signed, or is unsigned?
- Ensure all Jar files that are run, are signed, and are signed by me?
- Looking for help to use Google Cloud HSM with jarsigner to sign jar files
- JAR Signing Java using digital certificate
- Why do I get "no manifest." and "jar is unsigned." when doing "jarsigner -verify -verbose -certs" for my APK
- Signed apk unable to install in Android 12
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
KeyVault is just a provider to store secrets, keys and certificates. It does not offer any options to execute anything on it.
If you want to use the certificate you need to retrieve it:
You could however execute the signing task as part of an Azure DevOps Pipeline or inside an Azure Container Instance. So, the Certificate will not be stored on your local device. But at some point the certificate need to leave the KeyVault to be worked with.