Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Add-HgsKeyProtectionAttestationSignerCertificate

Brian Lich|Last Updated: 3/30/2017

SYNOPSIS

Adds an attestation signer certificate for the trusted certificates for the Key Protection Service.

SYNTAX

Add-HgsKeyProtectionAttestationSignerCertificate -Certificate <X509Certificate2> [-Force] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The Add-HgsKeyProtectionAttestationSignerCertificate cmdlet adds the signer certificate of an attestation server to the list of certificates that the Key Protection Service trusts. The Key Protection Service uses attestation signer certificates to verify the signatures of health certificates. To modify the policy for an attestation signer certificate, use the Set-HgsKeyProtectionAttestationSignerCertificatePolicy cmdlet.

EXAMPLES

Example 1: Add a certificate

PS C:\> Add-HgsKeyProtectionAttestationSignerCertificate -Certificate $Certificate

This command adds the certificate stored in the $Certificate variable to the trusted attestation signer certificates.

PARAMETERS

-Certificate

Specifies an X509Certificate2 certificate. This cmdlet adds the certificate that this parameter specifies to the attestation signer certificates that the Key Protection Service trusts. Specify a variable that stores an X509Certificate2 object or an expression that gets the certificate.

Type: X509Certificate2
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Force

Forces the command to run without asking for user confirmation.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

You cannot pipe input to this cmdlet.

OUTPUTS

None

This cmdlet does not generate any output.

NOTES

Get-HgsKeyProtectionAttestationSignerCertificate

Remove-HgsKeyProtectionAttestationSignerCertificate

Set-HgsKeyProtectionAttestationSignerCertificatePolicy

© 2017 Microsoft