Import-Certificate
Import-Certificate [-FilePath*] <String> [-CertStoreLocation <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
The Import-Certificate cmdlet imports one or more certificates into a certificate store.
Parameters
-CertStoreLocation [<String>]
Specifies the path to the certificate store where the certificates will be imported. If the path to the certificate store is not specified, then the current store is used.
-FilePath <String>
- This value is required
- Accepts pipeline input ByPropertyName
Specifies the path to a certificate file to be imported. Acceptable formats include .sst, .p7b, and .cert files. If the file contains multiple certificates, then each certificate will be imported to the destination store.
-Confirm [<SwitchParameter>]
- Default value is false
Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.
-WhatIf [<SwitchParameter>]
- Default value is false
Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer, PipelineVariable, and OutVariable.
Inputs
System.StringOutputs
System.Security.Cryptography.X509Certificates.X509Certificate2[]This work is licensed under a Creative Commons Attribution 4.0 International. It is attributed to Microsoft Corporation and can be found here.
PowerShell Commands