Dela via


Använda certifikat med Azure Cloud Services (extended-support)

Key Vault används för att lagra certifikat som är associerade med Cloud Services (utökad support). Key Vaults kan skapas via Azure-portalen och PowerShell. Lägg till certifikaten i Key Vault och referera sedan till certifikatets tumavtryck i tjänstkonfigurationsfilen. Du måste också aktivera Key Vault för lämpliga behörigheter så att Cloud Services-resursen (utökad support) kan hämta certifikat som lagras som hemligheter från Key Vault.

Ladda upp ett certifikat till Key Vault

  1. Logga in på Azure-portalen och gå till Key Vault. Om du inte har konfigurerat ett Key Vault kan du välja att skapa ett i samma fönster.

  2. Välj Åtkomstkonfiguration

    Image shows selecting access policies from the key vault blade.

  3. Se till att åtkomstkonfigurationen innehåller följande egenskap:

    • Aktivera åtkomst till virtuella Azure-datorer för distribution

    Image shows access policies window in the Azure portal.

  4. Välj Certifikat

    Image shows selecting the certificates option from the key vault blade policies window in the Azure portal.

  5. Välj Generera/importera

    Image shows selecting the generate/ import option

  6. Slutför den information som krävs för att slutföra uppladdningen av certifikatet. Certifikatet måste finnas i . PFX-format .

    Image shows importing window in the Azure portal.

  7. Lägg till certifikatinformationen i din roll i filen Service Configuration (.cscfg). Kontrollera att tumavtrycket för certifikatet i Azure-portalen matchar tumavtrycket i filen Service Configuration (.cscfg).

    <Certificate name="<your cert name>" thumbprint="<thumbprint in key vault" thumbprintAlgorithm="sha1" /> 
    
  8. För distribution via ARM-mall kan du hitta certificateUrl genom att navigera till certifikatet i nyckelvalvet märkt som hemlig identifierare

    Image shows the secret identifier field in the key vault.

Nästa steg