Skip to content

Commit

Permalink
Fix: Certificate PFX creation (desenvolvedor-io#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralmsdeveloper authored May 2, 2022
1 parent 343c18c commit 44eed28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose-local-light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ services:
- ./certs:/https:rw
command: >
sh -c "[ -e "./https/devstore.academy-localhost.pfx" ] && echo File Already exist || (
rm /https/devstore.academy-localhost.pfx &&
rm -f /https/devstore.academy-localhost.pfx &&
openssl genrsa -out devstore.rsa 2048 &&
openssl req -sha256 -new -key devstore.rsa -out devstore.csr -subj '/CN=localhost' &&
openssl x509 -req -sha256 -days 365 -in devstore.csr -signkey devstore.rsa -out devstore.crt &&
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ services:
- ./certs:/https:rw
command: >
sh -c "[ -e "./https/devstore.academy-localhost.pfx" ] && echo File Already exist || (
rm /https/devstore.academy-localhost.pfx &&
rm -f /https/devstore.academy-localhost.pfx &&
openssl genrsa -out devstore.rsa 2048 &&
openssl req -sha256 -new -key devstore.rsa -out devstore.csr -subj '/CN=localhost' &&
openssl x509 -req -sha256 -days 365 -in devstore.csr -signkey devstore.rsa -out devstore.crt &&
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- ./certs:/https:rw
command: >
sh -c "[ -e "./https/devstore.academy-localhost.pfx" ] && echo File Already exist || (
rm /https/devstore.academy-localhost.pfx &&
rm -f /https/devstore.academy-localhost.pfx &&
openssl genrsa -out devstore.rsa 2048 &&
openssl req -sha256 -new -key devstore.rsa -out devstore.csr -subj '/CN=localhost' &&
openssl x509 -req -sha256 -days 365 -in devstore.csr -signkey devstore.rsa -out devstore.crt &&
Expand Down

0 comments on commit 44eed28

Please sign in to comment.