2019-04-08 13:12:15 +02:00
# 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.
## EXAMPLES
### BEISPIEL 1
```
2019-04-29 11:38:56 +02:00
Import-CSCertificate -Type 'Private' -Path (Join-Path -Path $Env:APPDATA -ChildItem 'PfxCertificate.pfx')
2019-04-08 13:12:15 +02:00
```
## PARAMETERS
2019-04-08 15:25:08 +02:00
### -Path
Provide a valid path to pfx certificate file.
2019-04-08 13:12:15 +02:00
```yaml
2019-04-08 15:25:08 +02:00
Type: FileInfo
2019-04-08 13:12:15 +02:00
Parameter Sets: (All)
Aliases:
Required: True
2019-04-08 15:25:08 +02:00
Position: 2
2019-04-08 13:12:15 +02:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2019-04-08 15:25:08 +02:00
### -Type
Select between the a private and shared credential store.
2019-04-08 13:12:15 +02:00
```yaml
2019-04-08 15:25:08 +02:00
Type: String
2019-04-08 13:12:15 +02:00
Parameter Sets: (All)
Aliases:
Required: True
2019-04-08 15:25:08 +02:00
Position: 1
2019-04-08 13:12:15 +02:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
2019-04-29 11:38:56 +02:00
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 ).
2019-04-08 13:12:15 +02:00
## INPUTS
2019-04-29 11:38:56 +02:00
### [None]
2019-04-08 13:12:15 +02:00
## OUTPUTS
2019-04-29 11:38:56 +02:00
### [None]
2019-04-08 13:12:15 +02:00
## NOTES
- File Name : Import-CSCertificate.ps1
- Author : Marco Blessing - marco.blessing@googlemail.com
- Requires :
## RELATED LINKS
[https://github.com/OCram85/PSCredentialStore ](https://github.com/OCram85/PSCredentialStore )