Automatic Export Secret and Import Certificate from KeyVault

Philipp Gerber 251 Reputation points
2023-05-17T06:43:10.0766667+00:00

Hello Community,

a short Question about a automatic import/export from Azure Certificates.

Situation:

I use Azure Certificates to build an Wildcard Certificate.

This Certificate will be automatically stored in a KeyVault.

Ok, all fine to this moment.

Now i must go to the KeyVault -> Secrets and export the current Version as a Certificate.
After this i go to Certificates and import the downloaded Certificate from the Step before to the KeyVault.

After this step i can use this Certificate from diffrent locations.

The Question:

Can i do this Steps automatically?
Its really stressful to do this steps all year again.

Thanks a lot.

Regards,

Phil

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,159 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,219 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,046 Reputation points
    2023-05-18T15:22:49.27+00:00

    Hello there,

    You can try powershell script and task scheduler to achieve this.

    The Task Scheduler enables you to automatically perform routine tasks on a chosen computer. The Task Scheduler does so by monitoring whatever criteria you choose (referred to as triggers) and then executing the tasks when those criteria are met.

    https://learn.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-start-page

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments