< Back

Import-CSCertificate

Sun Jan 19, 2020 6:36 pm

NAME Import-CSCertificate



SYNOPSIS

Imports a linked certificate to the valid store location.





SYNTAX

Import-CSCertificate [-Type] <String> [-Path] <FileInfo> [<CommonParameters>]





DESCRIPTION

Import-CSCertificate takes a pfx certificate file and imports it to the supposed certificate store for

private and shared credential stores.





PARAMETERS

-Type <String>

Select between the a private and shared credential store.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Path <FileInfo>

Provide a valid path to pfx certificate file.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

[None]





OUTPUTS

[None]





NOTES





- File Name : Import-CSCertificate.ps1

- Author : Marco Blessing - marco.blessing@googlemail.com

- Requires :



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Import-CSCertificate -Type 'Private' -Path (Join-Path -Path $Env:APPDATA -ChildItem 'PfxCertificate.pfx')















RELATED LINKS

https://github.com/OCram85/PSCredentialStore