-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[No Deploy]: add create_client_vpn_certificate.sh (#35)
- Loading branch information
1 parent
3971932
commit 9f73fef
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
git clone https://github.com/OpenVPN/easy-rsa.git | ||
cd easy-rsa/easyrsa3 | ||
./easyrsa init-pki | ||
./easyrsa build-ca nopass | ||
./easyrsa --san=DNS:server build-server-full server nopass | ||
./easyrsa build-client-full client1.domain.tld nopass | ||
mkdir ~/cobol4jweb/ | ||
cp pki/ca.crt ~/cobol4jweb/ | ||
cp pki/issued/server.crt ~/cobol4jweb/ | ||
cp pki/private/server.key ~/cobol4jweb/ | ||
cp pki/issued/client1.domain.tld.crt ~/cobol4jweb | ||
cp pki/private/client1.domain.tld.key ~/cobol4jweb/ | ||
cd ~/cobol4jweb/ | ||
aws acm import-certificate --certificate fileb://server.crt --private-key fileb://server.key --certificate-chain fileb://ca.crt | ||
aws acm import-certificate --certificate fileb://client1.domain.tld.crt --private-key fileb://client1.domain.tld.key --certificate-chain fileb://ca.crt |