Set-SmaCertificate
SMA'da sertifika oluşturur veya güncelleştirir.
Syntax
Set-SmaCertificate
-Name <String>
-Path <String>
-Password <SecureString>
[-Description <String>]
-WebServiceEndpoint <String>
[-Port <Int32>]
[-AuthenticationType <String>]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Set-SmaCertificate cmdlet'i Service Management Automation'da (SMA) bir sertifika oluşturur veya güncelleştirir.
Örnekler
Örnek 1: Sertifika oluşturma
PS C:\> $Password = ConvertTo-SecureString "PassWord!" -AsPlainText -Force
PS C:\> Set-SmaCertificate -WebServiceEndpoint "https://contoso.com/app01" -Name "MyCertificate" -Path "./cert.pfx" -Password $Password
İlk komut, sağlanan parola için güvenli bir dize oluşturur ve güvenli dizeyi $Password değişkeninde depolar.
İkinci komut MyCertificate adlı bir sertifika oluşturur. komut, sertifika dosyasının yolunu ve $Password depolanan parolayı sağlar.
Parametreler
-AuthenticationType
Kimlik doğrulama türünü belirtir. Geçerli değerler:
- Temel
- Windows
Bu parametre için varsayılan değer Windows'dur. Temel kimlik doğrulaması kullanıyorsanız, Kimlik Bilgisi parametresini kullanarak kimlik bilgilerini sağlamanız gerekir.
Type: | String |
Accepted values: | Basic, Windows |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Cmdlet'i çalıştırmadan önce sizden onay ister.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
SMA web hizmetine bağlantı için bir PSCredential nesnesi belirtir.
Kimlik bilgisi nesnesi almak için Get-Credential cmdlet'ini kullanın.
Daha fazla bilgi için Get-Help Get-Credential
yazın.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Sertifika için bir açıklama sağlar.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Sertifikanın adını belirtir.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Password
Sertifikaya erişmek için parolayı güvenli bir dize olarak belirtir.
Type: | SecureString |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Path
Sertifikanın yerel yolunu belirtir.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Port
SMA web hizmetinin bağlantı noktası numarasını belirtir.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WebServiceEndpoint
SMA web hizmetinin URL'si olarak uç noktayı belirtir. Protokolü eklemeniz gerekir, örneğin http:// veya https://.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Cmdlet çalıştırılıyorsa ne olacağını gösterir. Cmdlet çalıştırılmaz.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |