4105 Commits

Author SHA1 Message Date
neil
514e3de871 minor 2021-08-10 09:29:15 +02:00
neil
5a9ff82287 fix nginx relative path issue:
https://github.com/acmesh-official/acme.sh/issues/1743
https://github.com/acmesh-official/acme.sh/issues/1914
2021-08-10 09:29:15 +02:00
neil
4bd0872322 minor 2021-08-10 09:29:15 +02:00
neil
cd06f8478f fix https://github.com/acmesh-official/acme.sh/issues/3487
suppor Ali doh and dnspod doh.
2021-08-10 09:29:15 +02:00
Brian Hartvigsen
12558414d4 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.
2021-08-10 09:29:15 +02:00
neil
dc1526130f fix https://github.com/acmesh-official/acme.sh/issues/3421 2021-08-10 09:29:15 +02:00
neil
9952d92b5f fix compatibility issue 2021-08-10 09:29:15 +02:00
Jeff Goeke-Smith
d8a41a3a2d 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.
2021-08-10 09:29:15 +02:00
Eike-Christian Müller
1b2e3e07ef more simple mail.sh fix
Reverted the original patch and changed it to the obvious simple solution provided by @Neilpang.
2021-08-10 09:29:15 +02:00
emueller
1996d52578 fixed formating 2021-08-10 09:29:15 +02:00
emueller
212be3d7bd fix _exists error message when MAIL_BIN env variable is not set 2021-08-10 09:29:15 +02:00
Alexander Kulumbeg
333d5ad72f String update
Hopefully the last one
2021-08-10 09:29:15 +02:00
qkdreyer
0b5fd6718e fix: prevent rate limit 2021-08-10 09:28:23 +02:00
Quentin Dreyer
5529dc99f4 feat: add dns_porkbun 2021-08-10 09:28:23 +02:00
neil
f33f463b3b fix format 2021-08-10 09:28:23 +02:00
neil
c9cae6ad02 fix https://github.com/acmesh-official/acme.sh/issues/3312 2021-08-10 09:28:23 +02:00
anom-human
39e12ec65f 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.
2021-08-10 09:28:23 +02:00
anom-human
5ab52c8eab 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.
2021-08-10 09:28:23 +02:00
neilpang
79a8fb677a fix format 2021-08-10 09:28:23 +02:00
neilpang
72a8e8ff0c fix https://github.com/acmesh-official/acme.sh/issues/3019 2021-08-10 09:28:23 +02:00
neilpang
8680716262 fix https://github.com/acmesh-official/acme.sh/issues/3433 2021-08-10 09:28:23 +02:00
Lukas Brocke
a73fdbbb5b 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.
2021-08-10 09:28:23 +02:00
neilpang
2c253c9446 fix https://github.com/acmesh-official/acme.sh/issues/3402 2021-08-10 09:28:23 +02:00
Kristian Johansson
9838b792ed Adds comment 2021-08-10 09:28:23 +02:00
Kristian Johansson
e8d3984f11 Fixes response handling and thereby allow issuing of subdomain certs 2021-08-10 09:28:23 +02:00
Geert Hendrickx
1d3bf43328 No need to include EC parameters explicitly with the private key.
(they are embedded)
2021-08-10 09:28:23 +02:00
czeming
89ee620f5d Update dns_dp.sh
没有encode中文字符会导致提交失败
2021-08-10 09:28:23 +02:00
medmunds
5822e1e54c Change default SMTP_SECURE to "tls"
Secure by default. Also try to minimize configuration errors.
(Many ESPs/ISPs require STARTTLS, and most support it.)
2021-08-10 09:28:23 +02:00
medmunds
0f4aadfc92 Prefer Python to curl when both available 2021-08-10 09:28:23 +02:00
medmunds
f59cd16bfd 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.)
2021-08-10 09:28:23 +02:00
medmunds
1864109b82 Add Date email header in Python implementation 2021-08-10 09:28:23 +02:00
medmunds
a236b3cfc0 Clarify _readaccountconf_mutable_default 2021-08-10 09:28:23 +02:00
medmunds
86818463f1 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.
2021-08-10 09:28:23 +02:00
medmunds
07a04f42c5 Implement _rfc2822_date helper 2021-08-10 09:28:23 +02:00
medmunds
3ed3e3095c 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.
2021-08-10 09:28:23 +02:00
medmunds
f73034cc77 Add _clearaccountconf_mutable() 2021-08-10 09:28:23 +02:00
medmunds
ff009f4c2f Use PROJECT_NAME and VER for X-Mailer header
Also add X-Mailer header to Python version
2021-08-10 09:28:23 +02:00
neilpang
3086ade543 make the fix for rsa key only 2021-08-10 09:28:23 +02:00
neilpang
307951fabf support openssl 3.0
fix https://github.com/acmesh-official/acme.sh/issues/3399
2021-08-10 09:28:23 +02:00
Easton Man
ad8fd97433 fix: fix freebsd and solaris 2021-08-10 09:28:19 +02:00
Easton Man
4ccfa1a794 feat: add huaweicloud error handling 2021-08-10 09:28:02 +02:00
Mike Edmunds
4137df2a51 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
2021-08-10 09:28:02 +02:00
medmunds
f4a2dc1fcc More than one blank line is an abomination, apparently
I will not try to use whitespace to group code visually
2021-08-10 09:28:02 +02:00
medmunds
0f4a0441cf Implement curl version of smtp notify-hook 2021-08-10 09:28:02 +02:00
medmunds
30b54b8d0f Prep for curl or Python; clean up SMTP_* variable usage 2021-08-10 09:28:02 +02:00
medmunds
0fc1654faf Add instructions for reporting bugs 2021-08-10 09:28:02 +02:00
medmunds
7eef1e6623 Only save config if send is successful 2021-08-10 09:28:02 +02:00
medmunds
a835838749 Make shfmt happy
(I'm open to better ways of formatting the heredoc
that embeds the Python script.)
2021-08-10 09:28:02 +02:00
medmunds
2000240aa6 Implement smtp notify hook
Support notifications via direct SMTP server connection.
Uses Python (2.7.x or 3.4+) to communicate with SMTP server.
2021-08-10 09:28:02 +02:00
jerrm
e1229d4c02 duckdns - fix "integer expression expected" errors (#3397)
* fix "integer expression expected" errors

* duckdns fix

* Update dns_duckdns.sh

* Update dns_duckdns.sh
2021-08-10 09:28:02 +02:00