Skip to content

Commit

Permalink
Removes check for CA_KEY in _trust_ca
Browse files Browse the repository at this point in the history
  • Loading branch information
lstellway committed Apr 1, 2021
1 parent 0c356d4 commit 963f61e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion self-signed-tls
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ _trust_linux() {
#######################################
_trust_ca() {
# Check if CA exists and script is instructed to trust
if [ -f "${CA_KEY}" ] && [ -f "${CA}" ] && [ -n "${TRUST}" ]; then
if [ -f "${CA}" ] && [ -n "${TRUST}" ]; then
if [[ "${OSTYPE}" == "darwin"* ]]; then
# MacOS (Darwin)
sudo security add-trusted-cert -d -r trustRoot \
Expand Down

0 comments on commit 963f61e

Please sign in to comment.