Skip to content

Commit

Permalink
Merge pull request #116 from spryker/feature/sc-3127/master-tls
Browse files Browse the repository at this point in the history
SC-3127: Document how to use TLS locally
  • Loading branch information
alexanderM91 authored Jun 11, 2020
2 parents 47cf159 + e0d14cb commit 962ca10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generator/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,10 @@
$sslDir = $deploymentDir . DS . 'context' . DS . 'nginx' . DS . 'ssl';
mkdir($sslDir);
echo shell_exec(sprintf(
'PFX_PASSWORD="%s" DESTINATION=%s ./openssl/generate.sh %s',
'PFX_PASSWORD="%s" DESTINATION=%s DEPLOYMENT_DIR=%s ./openssl/generate.sh %s',
addslashes($projectData['docker']['ssl']['pfx-password'] ?? 'secret'),
$sslDir,
$deploymentDir,
implode(' ', retrieveHostNames($projectData))
));

Expand Down
2 changes: 2 additions & 0 deletions generator/openssl/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ openssl verify \
-verbose \
-CAfile ${DESTINATION}/ca.crt \
${DESTINATION}/ssl.crt

cp ${DESTINATION}/ca.crt ${DEPLOYMENT_DIR}/spryker_ca.crt

0 comments on commit 962ca10

Please sign in to comment.