external help file: SitecoreInstallFramework-help.xml
online version:
schema: 2.0.0
---
Returns the certificate for the given name or thumbprint under a certificate path.
Invoke-GetCertificateConfigFunction [-Id] <String> [[-CertStorePath] <String>] [<CommonParameters>]
Searches for a certificate under $CertStorePath with by name or thumbprint and returns the instance.
PS C:\> Invoke-GetCertificateConfigFunction -Id 'MyCert'
Searches the default certificate path cert:\LocalMachine\My
for the certificate with
the name MyCert
.
PS C:\> Invoke-GetCertificateConfigFunction -Id '80AE58424A64BAAF7E82764BB9BE79EE27B46A96'
Searches the default certificate path cert:\LocalMachine\My
for the certificate with
the thumbprint 80AE58424A64BAAF7E82764BB9BE79EE27B46A96
.
PS C:\> Invoke-GetCertificateConfigFunction -Id 'MyRootCert' -CertStorePath 'cert:\LocaMachine\Root`
Searches the certificate path cert:\LocalMachine\Root
for the certificate with
the name MyRootCert
.
The certificate path to search for certificates
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name or thumbprint of the certificate to locate.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).