]> git.proxmox.com Git - mirror_acme.sh.git/log
mirror_acme.sh.git
2 years agoMerge pull request #3534 from acmesh-official/dev 2.9.0
neil [Wed, 2 Jun 2021 12:53:41 +0000 (20:53 +0800)]
Merge pull request #3534 from acmesh-official/dev

sync

2 years agofix bug
neil [Tue, 1 Jun 2021 14:21:17 +0000 (22:21 +0800)]
fix bug

2 years agoadd debug info
neil [Tue, 1 Jun 2021 14:15:41 +0000 (22:15 +0800)]
add debug info

2 years agoMerge pull request #3529 from Haarolean/bugfix/porkbun-fixes
neil [Tue, 1 Jun 2021 13:29:14 +0000 (21:29 +0800)]
Merge pull request #3529 from Haarolean/bugfix/porkbun-fixes

Porkbun DNS API fixes

2 years agoadd error message
neil [Tue, 1 Jun 2021 13:24:37 +0000 (21:24 +0800)]
add error message

2 years agocheck initAPI error
neil [Tue, 1 Jun 2021 13:23:00 +0000 (21:23 +0800)]
check initAPI error

2 years agoMerge pull request #3530 from DerVerruckteFuchs/1984-login-fix
neil [Tue, 1 Jun 2021 13:10:52 +0000 (21:10 +0800)]
Merge pull request #3530 from DerVerruckteFuchs/1984-login-fix

1984 login fix

2 years agochange "$url" -> $url so the value of $url gets passed by reference, and the string...
Christophe B Billheimer [Mon, 31 May 2021 19:12:11 +0000 (15:12 -0400)]
change "$url" -> $url so the value of $url gets passed by reference, and the string "$url" does not erroneously get passed as a variable into _post()

2 years agoFix porkbun issues
Roman Zabaluev [Sun, 30 May 2021 15:17:39 +0000 (18:17 +0300)]
Fix porkbun issues

See gh-3450

2 years agoupgrade cf-tunnel
neil [Sat, 29 May 2021 07:17:11 +0000 (15:17 +0800)]
upgrade cf-tunnel

2 years agoMerge pull request #3525 from tresni/synology_dsm
neil [Thu, 27 May 2021 13:04:24 +0000 (21:04 +0800)]
Merge pull request #3525 from tresni/synology_dsm

Synology DSM - Make certificate descriptions sed safe

2 years agoshellcheck cleanup
Brian Hartvigsen [Wed, 26 May 2021 21:24:50 +0000 (15:24 -0600)]
shellcheck cleanup

shellcheck sees '\\' as trying to escape the trailing quote (see
koalaman/shellcheck#1548 ).

2 years agoMake certificate descriptions sed safe
Brian Hartvigsen [Wed, 26 May 2021 21:07:23 +0000 (15:07 -0600)]
Make certificate descriptions sed safe

This escapes special characters used in POSIX sed to prevent mismatches.
e.g. `SYNO_Certficiate=*.example.com` would not match a description of
"*.example.com" and would look to match any number of double quotes (the
last character in the sed regex prior to certificate description),
followed by any single character, followed by "example", followed by any
character, followed by "com".

After this change, it will properly match `*.example.com` and not
`""zexamplefcom`.

Additionally we now store the certificate description as base64 encoded
to prevent issues with single quotes.

Tested on DSM 7.0-41222 (VDSM) and DSM 6.2.4-25556 (DS1515+).

2 years agoadd debug info
neilpang [Tue, 25 May 2021 13:57:15 +0000 (21:57 +0800)]
add debug info

2 years agoMerge pull request #3522 from acmesh-official/dev
neil [Sun, 23 May 2021 15:55:23 +0000 (23:55 +0800)]
Merge pull request #3522 from acmesh-official/dev

sync

2 years agoremove ngrok token
neil [Sun, 23 May 2021 15:16:04 +0000 (23:16 +0800)]
remove ngrok token

2 years agouse cloudflare tunnel to test
neil [Sun, 23 May 2021 15:12:46 +0000 (23:12 +0800)]
use cloudflare tunnel to test

2 years agofix format
neil [Sat, 22 May 2021 15:48:39 +0000 (23:48 +0800)]
fix format

2 years agoremove ACME v1 support
neil [Sat, 22 May 2021 15:45:50 +0000 (23:45 +0800)]
remove ACME v1 support

2 years agoMerge pull request #3520 from tresni/synology_dsm
neil [Thu, 20 May 2021 15:05:34 +0000 (23:05 +0800)]
Merge pull request #3520 from tresni/synology_dsm

Better fix for Synology DSM setting wrong default

2 years agoBetter fix for Synology DSM setting wrong default
Brian Hartvigsen [Wed, 19 May 2021 19:21:34 +0000 (13:21 -0600)]
Better fix for Synology DSM setting wrong default

As noted by @buxm, previous fix didn't work for all versions of DSM 6.
The better fix appears to be simply not outputting the "as_default"
parameter unless we are doing something with the default certificate.

2 years agoMerge pull request #3505 from willbrowningme/patch-1
neil [Sat, 8 May 2021 13:12:56 +0000 (21:12 +0800)]
Merge pull request #3505 from willbrowningme/patch-1

dnsapi/dns_desec.sh remove DEDYN_NAME variable

2 years agominor
neilpang [Sat, 8 May 2021 13:09:56 +0000 (21:09 +0800)]
minor

2 years agoMerge pull request #3511 from acmesh-official/dev
neil [Sat, 8 May 2021 13:00:02 +0000 (21:00 +0800)]
Merge pull request #3511 from acmesh-official/dev

Dev

2 years agofix https://github.com/acmesh-official/acme.sh/issues/3504
neilpang [Fri, 7 May 2021 14:02:40 +0000 (22:02 +0800)]
fix https://github.com/acmesh-official/acme.sh/issues/3504
check invalid status first.

2 years agoMerge branch 'dev' of https://github.com/acmesh-official/acme.sh into dev
neilpang [Fri, 7 May 2021 13:50:22 +0000 (21:50 +0800)]
Merge branch 'dev' of https://github.com/acmesh-official/acme.sh into dev

2 years agofix https://github.com/acmesh-official/acme.sh/issues/3504
neilpang [Fri, 7 May 2021 13:49:47 +0000 (21:49 +0800)]
fix https://github.com/acmesh-official/acme.sh/issues/3504

2 years agoRemove DEDYN_NAME variable from dns_desec.sh
Will Browning [Thu, 6 May 2021 15:51:43 +0000 (16:51 +0100)]
Remove DEDYN_NAME variable from dns_desec.sh

2 years agoMerge pull request #3350 from temoffey/deploy-gcore_cdn
neil [Wed, 5 May 2021 15:48:37 +0000 (23:48 +0800)]
Merge pull request #3350 from temoffey/deploy-gcore_cdn

Deploy gcore_cdn fix

2 years agostart 2.9.0
neilpang [Tue, 4 May 2021 05:32:59 +0000 (13:32 +0800)]
start 2.9.0

2 years agoMerge pull request #3499 from acmesh-official/dev 2.8.9
neil [Mon, 3 May 2021 14:20:20 +0000 (22:20 +0800)]
Merge pull request #3499 from acmesh-official/dev

sync

2 years agominor
neil [Mon, 3 May 2021 09:14:54 +0000 (17:14 +0800)]
minor

2 years agofix nginx relative path issue:
neil [Mon, 3 May 2021 09:11:02 +0000 (17:11 +0800)]
fix nginx relative path issue:
https://github.com/acmesh-official/acme.sh/issues/1743
https://github.com/acmesh-official/acme.sh/issues/1914

2 years agominor
neil [Mon, 3 May 2021 08:42:09 +0000 (16:42 +0800)]
minor

2 years agofix https://github.com/acmesh-official/acme.sh/issues/3487
neil [Mon, 3 May 2021 08:35:42 +0000 (16:35 +0800)]
fix https://github.com/acmesh-official/acme.sh/issues/3487
suppor Ali doh and dnspod doh.

2 years agoMerge pull request #3498 from tresni/synology_dsm
neil [Mon, 3 May 2021 07:57:09 +0000 (15:57 +0800)]
Merge pull request #3498 from tresni/synology_dsm

FIX: Synology sets "default" on wrong certificate

2 years agofix https://github.com/acmesh-official/acme.sh/issues/3421
neil [Mon, 3 May 2021 07:52:56 +0000 (15:52 +0800)]
fix https://github.com/acmesh-official/acme.sh/issues/3421

3 years agoFIX: Synology sets "default" on wrong certificate
Brian Hartvigsen [Sun, 2 May 2021 19:37:59 +0000 (13:37 -0600)]
FIX: Synology sets "default" on wrong certificate

For some DSM installs, it appears that setting the "default" flag to the
string "false" actually sets it to true.  This causes Synology to set
the last updated certificate to be the default certificate.  Using an
empty string appears to still be accepted as a false-y value for DSMs
where this isn't happening and corrects the behavior in the cases that
it was.

Credit to @Run-King for identifying the fix and @buxm for reporting.

3 years agoMerge branch 'dev' of https://github.com/acmesh-official/acme.sh into dev
neilpang [Sun, 2 May 2021 14:20:27 +0000 (22:20 +0800)]
Merge branch 'dev' of https://github.com/acmesh-official/acme.sh into dev

3 years agoupgrade freebsd
neilpang [Sun, 2 May 2021 14:20:04 +0000 (22:20 +0800)]
upgrade freebsd

3 years agofix compatibility issue
neil [Sat, 1 May 2021 14:32:44 +0000 (22:32 +0800)]
fix compatibility issue

3 years agoMerge pull request #3493 from goekesmi/master
neil [Sat, 1 May 2021 02:16:30 +0000 (10:16 +0800)]
Merge pull request #3493 from goekesmi/master

Pass content via printf string format and argument

3 years agoarguments passed to printf are more generic
Jeff Goeke-Smith [Thu, 29 Apr 2021 20:46:32 +0000 (16:46 -0400)]
arguments passed to printf are more generic

On systems that /bin/sh is served by shells other than bash, or
shells that don't implement the same syntax as the bash printf builtin,
printf -- fails to produce the output necessary for standalone operation.

The test case for this was SmartOS, which uses ksh93 as its /bin/sh.

This change uses the more generic method of passing a format parameter
of a single string, and then the argument to replace it with.

3 years agoMerge pull request #3455 from ecm75/notify_fix
neil [Thu, 29 Apr 2021 14:34:11 +0000 (22:34 +0800)]
Merge pull request #3455 from ecm75/notify_fix

fix _exists error message if MAIL_BIN env variable is not set

3 years agomore simple mail.sh fix
Eike-Christian Müller [Thu, 29 Apr 2021 10:53:13 +0000 (12:53 +0200)]
more simple mail.sh fix

Reverted the original patch and changed it to the obvious simple solution provided by @Neilpang.

3 years agoMerge pull request #3392 from akulumbeg/dev
neil [Mon, 19 Apr 2021 01:46:33 +0000 (09:46 +0800)]
Merge pull request #3392 from akulumbeg/dev

Adding DNSAPI wrapper for Websupport webhosting (Slovakia)

3 years agoMerge pull request #3460 from JaZo/feature/aurora
neil [Sat, 17 Apr 2021 14:17:35 +0000 (22:17 +0800)]
Merge pull request #3460 from JaZo/feature/aurora

Add Aurora DNS API

3 years agofix format
neilpang [Sat, 17 Apr 2021 14:09:59 +0000 (22:09 +0800)]
fix format

3 years agoAdd Aurora DNS API
Jasper Zonneveld [Fri, 26 Mar 2021 13:59:13 +0000 (14:59 +0100)]
Add Aurora DNS API

3 years agofix onecom api
neilpang [Wed, 14 Apr 2021 14:18:01 +0000 (22:18 +0800)]
fix onecom api

3 years agoMerge pull request #3479 from mjbnz/dev
neil [Fri, 9 Apr 2021 02:08:48 +0000 (10:08 +0800)]
Merge pull request #3479 from mjbnz/dev

Update Telegram notification

3 years agoUpdate telegram.sh
Mike Beattie [Thu, 8 Apr 2021 04:44:22 +0000 (16:44 +1200)]
Update telegram.sh

(fix shellcheck failure)

3 years agoDump _post() call output to /dev/null
Mike Beattie [Thu, 8 Apr 2021 04:38:00 +0000 (16:38 +1200)]
Dump _post() call output to /dev/null

Signed-off-by: Mike Beattie <mike@ethernal.org>
3 years agoAdd debug output of $_data variable to aid diagnosis
Mike Beattie [Thu, 8 Apr 2021 04:37:27 +0000 (16:37 +1200)]
Add debug output of $_data variable to aid diagnosis

Signed-off-by: Mike Beattie <mike@ethernal.org>
3 years agoEscape asterisks in notification content
Mike Beattie [Thu, 8 Apr 2021 04:36:42 +0000 (16:36 +1200)]
Escape asterisks in notification content

This messes with markdown parsing

Signed-off-by: Mike Beattie <mike@ethernal.org>
3 years agoMerge pull request #3478 from acmesh-official/dev
neil [Wed, 7 Apr 2021 14:04:08 +0000 (22:04 +0800)]
Merge pull request #3478 from acmesh-official/dev

sync

3 years agoMerge pull request #3464 from jpbede/cleverreach-deploy-sublient
neil [Sun, 4 Apr 2021 11:03:33 +0000 (19:03 +0800)]
Merge pull request #3464 from jpbede/cleverreach-deploy-sublient

CleverReach Deploy Hook: Allow deploy to agency subaccounts

3 years agoMake CI happy
Jan-Philipp Benecke [Tue, 30 Mar 2021 07:18:33 +0000 (09:18 +0200)]
Make CI happy

3 years agoMake uploading cert to subaccount possible
Jan-Philipp Benecke [Tue, 30 Mar 2021 07:13:32 +0000 (09:13 +0200)]
Make uploading cert to subaccount possible

3 years agoMerge pull request #3463 from c35sys/patch-1
neil [Mon, 29 Mar 2021 14:27:07 +0000 (22:27 +0800)]
Merge pull request #3463 from c35sys/patch-1

Use 'vault kv put' instead of 'vault write'

3 years agoUse 'vault kv put' instead of 'vault write'
Christophe Le Guern [Mon, 29 Mar 2021 13:10:14 +0000 (15:10 +0200)]
Use 'vault kv put' instead of 'vault write'

When using vault_cli with a kv2 path, it isn't working. I have the following error:
```
WARNING! The following warnings were returned from Vault:

  * Invalid path for a versioned K/V secrets engine. See the API docs for the
  appropriate API endpoints to use. If using the Vault CLI, use 'vault kv put'
  for this operation.
```
The new way to write data  is to use `vault kv put`, it is compatible with kv1 and kv2.
Ref: https://www.vaultproject.io/docs/commands#reading-and-writing-data
```
The original version of K/V used the common read and write operations. A more advanced K/V Version 2 engine was released in Vault 0.10 and introduced the kv get and kv put commands.
```

3 years agoMerge pull request #3445 from woutd/constellix-wildcard-support
neil [Sat, 27 Mar 2021 00:10:59 +0000 (08:10 +0800)]
Merge pull request #3445 from woutd/constellix-wildcard-support

Add wildcard certificate support for dns_constellix

3 years agoMake uploading cert to subaccount possible
Jan-Philipp Benecke [Fri, 26 Mar 2021 14:37:12 +0000 (15:37 +0100)]
Make uploading cert to subaccount possible

3 years agoWorkaround for Solaris, as it does not support non-greedy regex
wout [Wed, 24 Mar 2021 12:56:14 +0000 (13:56 +0100)]
Workaround for Solaris, as it does not support non-greedy regex

3 years agoCatch the situation when the TXT record is updated with the same value
wout [Wed, 24 Mar 2021 08:01:54 +0000 (09:01 +0100)]
Catch the situation when the TXT record is updated with the same value

3 years agoWhile [0-9]+ is a bit more correct than [0-9]*, the former does not seem to work...
wout [Tue, 23 Mar 2021 20:20:27 +0000 (21:20 +0100)]
While [0-9]+ is a bit more correct than [0-9]*, the former does not seem to work on Solaris.

3 years agofixed formating
emueller [Mon, 22 Mar 2021 14:32:02 +0000 (15:32 +0100)]
fixed formating

3 years agofix _exists error message when MAIL_BIN env variable is not set
emueller [Mon, 22 Mar 2021 14:12:27 +0000 (15:12 +0100)]
fix _exists error message when MAIL_BIN env variable is not set

3 years agoString update
Alexander Kulumbeg [Sun, 21 Mar 2021 15:25:04 +0000 (16:25 +0100)]
String update

Hopefully the last one

3 years agofix freebsd
neilpang [Sun, 21 Mar 2021 14:46:35 +0000 (22:46 +0800)]
fix freebsd

3 years agofix: prevent rate limit
qkdreyer [Sat, 13 Mar 2021 13:53:43 +0000 (14:53 +0100)]
fix: prevent rate limit

3 years agofeat: add dns_porkbun
Quentin Dreyer [Fri, 12 Mar 2021 11:03:36 +0000 (12:03 +0100)]
feat: add dns_porkbun

3 years agofix format
neil [Sat, 13 Mar 2021 12:46:12 +0000 (20:46 +0800)]
fix format

3 years agofix https://github.com/acmesh-official/acme.sh/issues/3312
neil [Sat, 13 Mar 2021 12:43:25 +0000 (20:43 +0800)]
fix https://github.com/acmesh-official/acme.sh/issues/3312

3 years agoUpdate dns_servercow.sh to support wildcard certs
anom-human [Thu, 11 Mar 2021 19:25:49 +0000 (20:25 +0100)]
Update dns_servercow.sh to support wildcard certs

Updated dns_servercow.sh to support txt records with multiple entries. This supports wildcard certificates that require txt records with the same name and different contents.

3 years agoUpdate dns_servercow.sh to support wildcard certs
anom-human [Thu, 11 Mar 2021 18:11:02 +0000 (19:11 +0100)]
Update dns_servercow.sh to support wildcard certs

Updated dns_servercow.sh to support txt records with multiple entries. This supports wildcard certificates that require txt records with the same name and different contents.

3 years agofix format
neilpang [Thu, 4 Mar 2021 13:50:54 +0000 (21:50 +0800)]
fix format

3 years agofix https://github.com/acmesh-official/acme.sh/issues/3019
neilpang [Thu, 4 Mar 2021 13:38:51 +0000 (21:38 +0800)]
fix https://github.com/acmesh-official/acme.sh/issues/3019

3 years agofix https://github.com/acmesh-official/acme.sh/issues/3433
neilpang [Mon, 1 Mar 2021 10:13:50 +0000 (18:13 +0800)]
fix https://github.com/acmesh-official/acme.sh/issues/3433

3 years agodnsapi/ionos: Use POST instead of PATCH for adding TXT record
Lukas Brocke [Tue, 23 Feb 2021 18:49:58 +0000 (19:49 +0100)]
dnsapi/ionos: Use POST instead of PATCH for adding TXT record

The API now supports a POST route for adding records. Therefore
checking for already existing records and including them in a PATCH
request is no longer necessary.

3 years agofix https://github.com/acmesh-official/acme.sh/issues/3402
neilpang [Wed, 24 Feb 2021 23:45:22 +0000 (07:45 +0800)]
fix https://github.com/acmesh-official/acme.sh/issues/3402

3 years agoAdds comment
Kristian Johansson [Wed, 24 Feb 2021 16:34:28 +0000 (17:34 +0100)]
Adds comment

3 years agoFixes response handling and thereby allow issuing of subdomain certs
Kristian Johansson [Wed, 24 Feb 2021 07:53:35 +0000 (08:53 +0100)]
Fixes response handling and thereby allow issuing of subdomain certs

3 years agoNo need to include EC parameters explicitly with the private key.
Geert Hendrickx [Tue, 23 Feb 2021 09:28:17 +0000 (10:28 +0100)]
No need to include EC parameters explicitly with the private key.
(they are embedded)

3 years agoUpdate dns_dp.sh
czeming [Sat, 20 Feb 2021 09:16:33 +0000 (17:16 +0800)]
Update dns_dp.sh

没有encode中文字符会导致提交失败

3 years agoChange default SMTP_SECURE to "tls"
medmunds [Wed, 17 Feb 2021 19:39:16 +0000 (11:39 -0800)]
Change default SMTP_SECURE to "tls"

Secure by default. Also try to minimize configuration errors.
(Many ESPs/ISPs require STARTTLS, and most support it.)

3 years agoPrefer Python to curl when both available
medmunds [Wed, 17 Feb 2021 18:02:14 +0000 (10:02 -0800)]
Prefer Python to curl when both available

3 years agoUse email.policy.default in Python 3 implementation
medmunds [Wed, 17 Feb 2021 17:57:44 +0000 (09:57 -0800)]
Use email.policy.default in Python 3 implementation

Improves standards compatibility and utf-8 handling
in Python 3.3-3.8. (email.policy.default becomes the
default in Python 3.9.)

3 years agoAdd Date email header in Python implementation
medmunds [Wed, 17 Feb 2021 17:46:13 +0000 (09:46 -0800)]
Add Date email header in Python implementation

3 years agoClarify _readaccountconf_mutable_default
medmunds [Tue, 16 Feb 2021 22:41:21 +0000 (14:41 -0800)]
Clarify _readaccountconf_mutable_default

3 years agoClean email headers and warn on unsupported address format
medmunds [Tue, 16 Feb 2021 22:02:09 +0000 (14:02 -0800)]
Clean email headers and warn on unsupported address format

Just in case, make sure CR or NL don't end up in
an email header.

3 years agoImplement _rfc2822_date helper
medmunds [Tue, 16 Feb 2021 21:13:26 +0000 (13:13 -0800)]
Implement _rfc2822_date helper

3 years agoRework read/save config to not save default values
medmunds [Tue, 16 Feb 2021 20:49:27 +0000 (12:49 -0800)]
Rework read/save config to not save default values

Add and use _readaccountconf_mutable_default and
_saveaccountconf_mutable_default helpers to capture
common default value handling.

New approach also eliminates need for separate
underscore-prefixed version of each conf var.

3 years agoAdd _clearaccountconf_mutable()
medmunds [Tue, 16 Feb 2021 17:33:39 +0000 (09:33 -0800)]
Add _clearaccountconf_mutable()

3 years agoUse PROJECT_NAME and VER for X-Mailer header
medmunds [Mon, 15 Feb 2021 20:23:48 +0000 (12:23 -0800)]
Use PROJECT_NAME and VER for X-Mailer header

Also add X-Mailer header to Python version

3 years agomake the fix for rsa key only
neilpang [Mon, 15 Feb 2021 13:35:59 +0000 (21:35 +0800)]
make the fix for rsa key only

3 years agosupport openssl 3.0
neilpang [Mon, 15 Feb 2021 13:25:27 +0000 (21:25 +0800)]
support openssl 3.0
fix https://github.com/acmesh-official/acme.sh/issues/3399

3 years agofix: fix freebsd and solaris
Easton Man [Mon, 15 Feb 2021 07:19:18 +0000 (15:19 +0800)]
fix: fix freebsd and solaris

3 years agofeat: add huaweicloud error handling
Easton Man [Mon, 15 Feb 2021 07:18:49 +0000 (15:18 +0800)]
feat: add huaweicloud error handling

3 years agoFix: Unifi deploy hook support Unifi Cloud Key (#3327)
Mike Edmunds [Mon, 15 Feb 2021 07:01:21 +0000 (23:01 -0800)]
Fix: Unifi deploy hook support Unifi Cloud Key (#3327)

* fix: unifi deploy hook also update Cloud Key nginx certs

When running on a Unifi Cloud Key device, also deploy to
/etc/ssl/private/cloudkey.{crt,key} and reload nginx. This
makes the new cert available for the Cloud Key management
app running via nginx on port 443 (as well as the port 8443
Unifi Controller app the deploy hook already supported).

Fixes #3326

* Improve settings documentation comments

* Improve Cloud Key pre-flight error messaging

* Fix typo

* Add support for UnifiOS (Cloud Key Gen2)

Since UnifiOS does not use the Java keystore (like a Unifi
Controller or Cloud Key Gen1 deploy), this also reworks
the settings validation and error messaging somewhat.

* PR review fixes

* Detect unsupported Cloud Key java keystore location

* Don't try to restart inactive services

(and remove extra spaces from reload command)

* Clean up error messages and internal variables

* Change to _getdeployconf/_savedeployconf

* Switch from cp to cat to preserve file permissions