I am trying to update the certificate for my application but it is not working

RAMESH, RAM 20 Reputation points
2024-09-30T17:16:13.8166667+00:00

I am trying to update the certificate that have expired. Using Keyfactor, I created the .PFX file and imported to key vault successfully.

I also added the .PEM (private key) to the application. I did not get any errors and assume it was applied successfully.

However I do not see the private key associated with the public key when I use kubectl command.

I can see for the previous ones but not for this.

Appreciate any help,

Thanks

Ram

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,283 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,100 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,756 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andriy Bilous 11,421 Reputation points MVP
    2024-09-30T19:36:56.74+00:00

    Hello RAMESH, RAM

    It seems your private key is not being properly associated with the public key after importing the certificate into your application using Kubernetes.
    Try to

    • Make sure that your generated certificate contains both the public and private keys.
    • Make sure that secret associated with your application has both the certificate and the private key: kubectl get secret <secret-name> -o yamlor tls.crt (certificate) and tls.key (private key) in the output.
    • Verify the secret is correctly mounted in your pod/deployment.
    • Confirm that the latest certificate version is being used from the Key Vault.
    • Inspect Kubernetes logs and ensure correct permissions are granted.
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.