Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 2.2 KB

New-CertificateSigningRequest.md

File metadata and controls

44 lines (32 loc) · 2.2 KB

New-CertificateSigningRequest

Create a new Certificate Signing Request with EnhancedKeyUsages of "Server Authentication" and "Client Authentication".

Parameters

Parameter Set 1

  • [String] CommonName The CommonName for the certificate SubjectName. Mandatory
  • [String] Organization The Organization (O) for the certificate SubjectName.
  • [String] OrganizationalUnit The OrganizationalUnit (OU) for the certificate SubjectName.
  • [String] Locality The Locality (L) for the certificate SubjectName.
  • [String] State The State (S) or ProvinceName for the certificate SubjectName.
  • [String] CountryCode The CountryCode (C) or Region for the certificate SubjectName.
  • [String[]] SubjectAlternativeNames A list of SAN DNS Names.
  • [Int32] RSAKeyLength Generate and use an RSA key pair of this size for the certificate.
  • [String] Path A directory path to store the Key and CSR PEM files. Default is the current directory.
  • [Switch] PassThru Optionally send the CSR PEM content to the pipeline.

Parameter Set 2

  • [String] CommonName The CommonName for the certificate SubjectName. Mandatory
  • [String] Organization The Organization (O) for the certificate SubjectName.
  • [String] OrganizationalUnit The OrganizationalUnit (OU) for the certificate SubjectName.
  • [String] Locality The Locality (L) for the certificate SubjectName.
  • [String] State The State (S) or ProvinceName for the certificate SubjectName.
  • [String] CountryCode The CountryCode (C) or Region for the certificate SubjectName.
  • [String[]] SubjectAlternativeNames A list of SAN DNS Names.
  • [Switch] ECDSAKey Generate and use an ECDSA key pair for the certifice. Not yet implemented.
  • [String] Path A directory path to store the Key and CSR PEM files. Default is the current directory.
  • [Switch] PassThru Optionally send the CSR PEM content to the pipeline.

Links

Notes

This command will write a .csr and .key file to $Path. The Key is not encrypted. Ensure it is stored in a secure location.

Outputs

  • string