Skip to content

Commit a5fab78

Browse files
authored
Merge pull request #113414 from sebgod/sebgod-vpn-cert-ps-update
Update vpn-gateway-generate-export-certificates-include.md
2 parents dea1308 + fb213e5 commit a5fab78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Use the New-SelfSignedCertificate cmdlet to create a self-signed root certificat
3030
NotAfter = (Get-Date).AddMonths(24)
3131
CertStoreLocation = 'Cert:\CurrentUser\My'
3232
}
33-
New-SelfSignedCertificate @params
33+
$cert = New-SelfSignedCertificate @params
3434
```
3535

3636
1. Leave the PowerShell console open and proceed with the next steps to generate a client certificate.
@@ -61,6 +61,7 @@ Modify and run the example to generate a client certificate. If you run the foll
6161
HashAlgorithm = 'sha256'
6262
NotAfter = (Get-Date).AddMonths(18)
6363
CertStoreLocation = 'Cert:\CurrentUser\My'
64+
Signer = $cert
6465
TextExtension = @(
6566
'2.5.29.37={text}1.3.6.1.5.5.7.3.2')
6667
}
@@ -111,6 +112,7 @@ If you're creating additional client certificates, or aren't using the same Powe
111112
HashAlgorithm = 'sha256'
112113
NotAfter = (Get-Date).AddMonths(18)
113114
CertStoreLocation = 'Cert:\CurrentUser\My'
115+
Signer = $cert
114116
TextExtension = @(
115117
'2.5.29.37={text}1.3.6.1.5.5.7.3.2')
116118
}

0 commit comments

Comments
 (0)