Skip to content

Commit

Permalink
transfer ci ssl fix
Browse files Browse the repository at this point in the history
  • Loading branch information
greatest-ape committed May 2, 2024
1 parent 2e5b8c6 commit 206b0d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/test-file-transfers/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ fi

$SUDO echo "127.0.0.1 example.com" >> /etc/hosts

openssl ecparam -genkey -name prime256v1 -out ca.key
openssl genrsa -out ca.key 2048
openssl req -new -x509 -days 365 -key ca.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=Acme Root CA" -out ca.crt
openssl req -newkey prime256v1 -nodes -keyout server.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=*.example.com" -out server.csr
openssl req -newkey rsa:2048 -nodes -keyout server.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=*.example.com" -out server.csr
openssl x509 -req -extfile <(printf "subjectAltName=DNS:example.com,DNS:www.example.com") -days 365 -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt
openssl pkcs8 -in ca.key -topk8 -nocrypt -out key.pk8
openssl pkcs8 -in server.key -topk8 -nocrypt -out key.pk8

$SUDO cp ca.crt /usr/local/share/ca-certificates/snakeoil-ca.crt
$SUDO cp server.crt /usr/local/share/ca-certificates/snakeoil-server.crt
Expand Down

0 comments on commit 206b0d8

Please sign in to comment.