SSHClientCertType Parameter (Connect-SFTP Cmdlet)
The type of SSHClientCert private key.
Syntax
Connect-SFTP -SSHClientCertType string
Possible Values
USER, MACHINE, PFXFILE, PFXBLOB, JKSFILE, JKSBLOB, PEMKEY_FILE, PEMKEY_BLOB, PPKFILE, PPKBLOB, XMLFILE, XMLBLOBData Type
cstr
Default Value
"PEMKEY_FILE"
Remarks
This property can take one of the following values:
Types | Description | Allowed Blob Values |
MACHINE/USER | The name of a local certificate store, such as MY, CA, ROOT, or SPC. Use SSHClientCertSubject to select a specific private key out of the store. Only available in .NET and when running on Windows. | Blob values are not supported. |
JKSFILE/JKSBLOB | Not available on this platform. | base64-only |
PFXFILE/PFXBLOB | A PKCS12-format (.pfx) file. Must contain both a certificate and a private key. | base64-only |
PEMKEY_FILE/PEMKEY_BLOB | A PEM-format file. Must contain an RSA, DSA, or OPENSSH private key. Can optionally contain a certificate matching the private key. | base64 or plain text. Newlines may be replaced with spaces when providing the blob as text. |
PPKFILE/PPKBLOB | A PuTTY-format private key created using the puttygen tool. | base64-only |
XMLFILE/XMLBLOB | An XML key in the format generated by the .NET RSA class: RSA.ToXmlString(true). | base64 or plain text. |