Skip to content

Commit 409cb3a

Browse files
authored
Merge pull request #106533 from cherylmc/patch-2
Update vpn-gateway-generate-export-certificates-include.md
2 parents 538c615 + 659195f commit 409cb3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

includes/vpn-gateway-generate-export-certificates-include.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Use the New-SelfSignedCertificate cmdlet to create a self-signed root certificat
2323
-HashAlgorithm sha256 -KeyLength 2048 `
2424
-CertStoreLocation "Cert:\CurrentUser\My" -KeyUsageProperty Sign -KeyUsage CertSign
2525
```
26+
3. Leave the PowerShell console open if you want to create a client certificate right after creating this root certificate.
2627

2728
## <a name="clientcert"></a>Generate a client certificate
2829

@@ -32,7 +33,7 @@ The following steps walk you through generating a client certificate from a self
3233

3334
The examples use the New-SelfSignedCertificate cmdlet to generate a client certificate that expires in one year. For additional parameter information, such as setting a different expiration value for the client certificate, see [New-SelfSignedCertificate](https://technet.microsoft.com/itpro/powershell/windows/pkiclient/new-selfsignedcertificate).
3435

35-
### Example 1
36+
### Example 1 - PowerShell console session still open
3637

3738
Use this example if you have not closed your PowerShell console after creating the self-signed root certificate. This example continues from the previous section and uses the declared '$cert' variable. If you closed the PowerShell console after creating the self-signed root certificate, or are creating additional client certificates in a new PowerShell console session, use the steps in [Example 2](#ex2).
3839

@@ -46,7 +47,7 @@ New-SelfSignedCertificate -Type Custom -DnsName P2SChildCert -KeySpec Signature
4647
-Signer $cert -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.2")
4748
```
4849

49-
### <a name="ex2"></a>Example 2
50+
### <a name="ex2"></a>Example 2 - New PowerShell console session
5051

5152
If you are creating additional client certificates, or are not using the same PowerShell session that you used to create your self-signed root certificate, use the following steps:
5253

0 commit comments

Comments
 (0)