Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 984 Bytes

Join-CertificateWithKey.md

File metadata and controls

31 lines (19 loc) · 984 Bytes

Join-CertificateWithKey

Join a Certificate and Private Key and export to a PFX file.

Parameters

Parameter Set 1

  • [String] Certificate The path to a certificate file. Mandatory, ValueFromPipeline
  • [String] PrivateKey The path to a PEM encoded private key file. Mandatory
  • [String[]] IntermediaryCertificate The patth to one or more Intermediary Certificates to include in the PFX bundle.
  • [SecureString] Password The password to protect the PFX file.
  • [Switch] PassThru Optionally send the X509Certificate2 object to the pipeline.

Examples

Example 1

Join CA signed certificate with issuing private key and export to a PFX file.

Join-CertificateWithKey -Certificate .\mynew.cer -PrivateKey .\mynew.key -Password (Get-Credential).Password

Links

Notes

The PFX file will be saved to the same directory as $Certificate.