Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync #3164

Merged
merged 30 commits into from
Sep 11, 2020
Merged

sync #3164

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f5f0680
Added support for custom domains
StefanAbl May 31, 2020
6cc9f49
first attempt to make travis happy
StefanAbl May 31, 2020
f5411ac
no supporting HTTP API as well
StefanAbl Jul 13, 2020
f8c8330
formatting
StefanAbl Jul 13, 2020
65aa7b1
formatting
StefanAbl Jul 13, 2020
395fdc9
Added support for custom domains
StefanAbl May 31, 2020
0b539a5
first attempt to make travis happy
StefanAbl May 31, 2020
0d4904f
no supporting HTTP API as well
StefanAbl Jul 13, 2020
3cd7a2e
formatting
StefanAbl Jul 13, 2020
c849738
formatting
StefanAbl Jul 13, 2020
d7f81df
merged rebase into master
StefanAbl Aug 28, 2020
185b558
fix shfmt error
StefanAbl Aug 28, 2020
91a8b97
Added support for custom domains
StefanAbl May 31, 2020
a83b16e
first attempt to make travis happy
StefanAbl May 31, 2020
06e7ebb
no supporting HTTP API as well
StefanAbl Jul 13, 2020
9dd5089
formatting
StefanAbl Jul 13, 2020
551316b
formatting
StefanAbl Jul 13, 2020
943d419
Added support for custom domains
StefanAbl May 31, 2020
90e2064
first attempt to make travis happy
StefanAbl May 31, 2020
9190ce3
no supporting HTTP API as well
StefanAbl Jul 13, 2020
6651801
formatting
StefanAbl Jul 13, 2020
8728389
formatting
StefanAbl Jul 13, 2020
4242354
fix shfmt error
StefanAbl Aug 28, 2020
7eca955
merge second rebase against upstream/master
StefanAbl Aug 31, 2020
1e4ea90
add zerossl test
Sep 6, 2020
98124de
add email for zerossl
Sep 6, 2020
f405f4b
fix zerossl
Sep 6, 2020
6f62995
remove ZeroSSL test
Sep 6, 2020
17dcf7d
Merge pull request #2973 from StefanAbl/master
Neilpang Sep 7, 2020
fabd26f
check token first
Sep 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/LetsEncrypt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- dev
paths:
- '**.sh'
- '**.yml'


jobs:
Expand Down Expand Up @@ -46,7 +47,7 @@ jobs:
- name: Clone acmetest
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
- name: Run acmetest
run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
run: cd ../acmetest && sudo --preserve-env ./letest.sh

MacOS:
runs-on: macos-latest
Expand All @@ -61,7 +62,7 @@ jobs:
- name: Clone acmetest
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
- name: Run acmetest
run: cd ../acmetest && sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh
run: cd ../acmetest && sudo --preserve-env ./letest.sh

Windows:
runs-on: windows-latest
Expand All @@ -72,6 +73,9 @@ jobs:
#The 80 port is used by Windows server, we have to use a custom port, ngrok will also use this port.
Le_HTTPPort: 8888
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
- uses: actions/checkout@v2
- name: Install cygwin base packages with chocolatey
run: |
Expand All @@ -87,7 +91,7 @@ jobs:
echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin'
- name: Clone acmetest
shell: cmd
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ && sed -i 's/\r//g' acmetest/acme.sh/acme.sh
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
- name: Run acmetest
shell: cmd
run: cd ../acmetest && bash.exe -c ./letest.sh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/PebbleStrict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
- '*'
paths:
- '**.sh'
- '**.yml'
pull_request:
branches:
- dev
paths:
- '**.sh'
- '**.yml'

jobs:
PebbleStrict:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,28 @@ on:
- '*'

jobs:
CheckToken:
runs-on: ubuntu-latest
outputs:
hasToken: ${{ steps.step_one.outputs.hasToken }}
env:
DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
steps:
- name: Set the value
id: step_one
run: |
if [ "$DOCKER_PASSWORD" ] ; then
echo "::set-output name=hasToken::true"
else
echo "::set-output name=hasToken::false"
fi
- name: Check the value
run: echo ${{ steps.step_one.outputs.hasToken }}

build:
runs-on: ubuntu-latest
needs: CheckToken
if: "contains(needs.CheckToken.outputs.hasToken, 'true')"
steps:
- name: checkout code
uses: actions/checkout@v2
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,28 @@ on:
- '*'
paths:
- '**.sh'
- '**.yml'
pull_request:
branches:
- dev
paths:
- '**.sh'
- '**.yml'

jobs:
formatCheck:
ShellCheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Shellcheck
run: sudo apt-get install -y shellcheck
- name: DoShellcheck
run: shellcheck -V && shellcheck -e SC2181 **/*.sh && echo "shellcheck OK"

shfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install shfmt
run: curl -sSL https://github.com/mvdan/sh/releases/download/v3.1.2/shfmt_v3.1.2_linux_amd64 -o ~/shfmt && chmod +x ~/shfmt
- name: shfmt
Expand Down
10 changes: 5 additions & 5 deletions acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,9 @@ _dbase64() {
_checkcert() {
_cf="$1"
if [ "$DEBUG" ]; then
openssl x509 -noout -text -in "$_cf"
${ACME_OPENSSL_BIN:-openssl} x509 -noout -text -in "$_cf"
else
openssl x509 -noout -text -in "$_cf" >/dev/null 2>&1
${ACME_OPENSSL_BIN:-openssl} x509 -noout -text -in "$_cf" >/dev/null 2>&1
fi
}

Expand Down Expand Up @@ -3994,7 +3994,7 @@ _check_dns_entries() {
_get_cert_issuers() {
_cfile="$1"
if _contains "$(${ACME_OPENSSL_BIN:-openssl} help crl2pkcs7 2>&1)" "Usage: crl2pkcs7"; then
${ACME_OPENSSL_BIN:-openssl} crl2pkcs7 -nocrl -certfile $_cfile | openssl pkcs7 -print_certs -text -noout | grep 'Issuer:' | _egrep_o "CN *=[^,]*" | cut -d = -f 2
${ACME_OPENSSL_BIN:-openssl} crl2pkcs7 -nocrl -certfile $_cfile | ${ACME_OPENSSL_BIN:-openssl} pkcs7 -print_certs -text -noout | grep 'Issuer:' | _egrep_o "CN *=[^,]*" | cut -d = -f 2
else
${ACME_OPENSSL_BIN:-openssl} x509 -in $_cfile -text -noout | grep 'Issuer:' | _egrep_o "CN *=[^,]*" | cut -d = -f 2
fi
Expand Down Expand Up @@ -4714,7 +4714,7 @@ $_authorizations_map"
return 1
fi
if [ -z "$Le_LinkOrder" ]; then
Le_LinkOrder="$(echo "$responseHeaders" | grep -i '^Location.*$' | _tail_n 1 | tr -d "\r\n" | cut -d ":" -f 2-)"
Le_LinkOrder="$(echo "$responseHeaders" | grep -i '^Location.*$' | _tail_n 1 | tr -d "\r\n \t" | cut -d ":" -f 2-)"
fi

_savedomainconf "Le_LinkOrder" "$Le_LinkOrder"
Expand Down Expand Up @@ -4978,7 +4978,7 @@ $_authorizations_map"
fi
}

#in_out_cert out_fullchain out out_ca
#in_out_cert out_fullchain out_ca
_split_cert_chain() {
_certf="$1"
_fullchainf="$2"
Expand Down
Loading