4083 Commits

Author SHA1 Message Date
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
neilpang
45a5f24d64 upgrade freebsd and solaris 2021-08-10 09:27:58 +02:00
neil
1b2b4af3cc Chain (#3408)
* fix https://github.com/acmesh-official/acme.sh/issues/3384
match the issuer to the root CA cert subject

* fix format

* fix https://github.com/acmesh-official/acme.sh/issues/3384

* remove the alt files. https://github.com/acmesh-official/acme.sh/issues/3384
2021-08-10 09:27:38 +02:00
manuel
b822da93f4 dnsapi/pdns: also normalize json response in detecting root zone 2021-08-10 09:27:38 +02:00
Gnought
6cea1cbb57 Updated --preferred-chain to issue ISRG properly
To support different openssl crl2pkcs7 help cli format
2021-08-10 09:27:38 +02:00
Vahid Fardi
4a86e71442 change name actor 2021-08-10 09:27:38 +02:00
Vahid Fardi
1d70b98941 change Author name 2021-08-10 09:27:38 +02:00
Vahid Fardi
60fcfd8ce0 change arvan api script 2021-08-10 09:27:38 +02:00
Alexander Kulumbeg
58ff7722cd Revert "Syncing with the original repo (#2)"
This reverts commit c384ed960c138f4449e79293644c4d0ec937cef1.
2021-08-10 09:27:23 +02:00
Alexander Kulumbeg
4dd333c4e1 String change 2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
f5d5ce5118 Final try, leaving _hmac as before 2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
dff88c16db Update dns_websupport.sh 2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
4770115be6 Changing the _hmac auth back
It only works this way, apparently
2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
8363853208 added hex param to _hmac
but removed "printf "s%" ...
2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
debf06fff8 Update dns_websupport.sh 2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
5d03106cd2 Changing the _hmac call into Neil's suggestion 2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
bc1488ae90 Trying the original solution
_hmac sha1 "$(printf "%s" "$WS_ApiSecret" | _hex_dump | tr -d " ")" hex)
2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
c0821cb648 adding the hex parameter to _hmac call 2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
1b12aebe58 Typo
Forgot a quotation mark on line 161
2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
20da70a4ab Implementing/testing Neil's suggestions 2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
803aa99dec Testing double 2>/dev/null into _utc_date with sed 2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
f13718b199 2>/dev/null/ to 2>/dev/null
Silly mistake with a "/" -.-
2021-08-10 09:25:09 +02:00
Alexander Kulumbeg
70b17d1a61 Extra test - adding date -u -d
Adding this to at least partially prevent the virtually nonexistent possibility of timestamp and _utc_date() mismatch. If the normal date -u -d does not get converted (looking at you Solaris!), the poor man's method with manipulating the _utc_date() string output kicks in.
2021-08-10 09:25:09 +02:00