Skip to content

Commit 19ad135

Browse files
committed
format
1 parent 65b7144 commit 19ad135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/vpn-gateway/point-to-site-certificates-linux-openssl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ In this section, you generate the user certificate (client certificate). Certifi
4545
export USERNAME=$(hostnamectl --static)
4646
4747
# Generate a private key
48-
openssl genrsa -out "${USERNAME}Key.pem" 2048
48+
openssl genrsa -out "${USERNAME}Key.pem" 2048
4949
5050
# Generate a CSR (Certificate Sign Request)
51-
openssl req -new -key "${USERNAME}Key.pem" -out "${USERNAME}Req.pem" -subj "/CN=${USERNAME}"
51+
openssl req -new -key "${USERNAME}Key.pem" -out "${USERNAME}Req.pem" -subj "/CN=${USERNAME}"
5252
5353
# Sign the CSR using the CA certificate and CA key
5454
openssl x509 -req -days 365 -in "${USERNAME}Req.pem" -CA caCert.pem -CAkey caKey.pem -CAcreateserial -out "${USERNAME}Cert.pem" -extfile <(echo -e "subjectAltName=DNS:${USERNAME}\nextendedKeyUsage=clientAuth")

0 commit comments

Comments
 (0)