4108 Commits

Author SHA1 Message Date
Christophe Le Guern
392de503cd 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.
```
2021-08-10 09:25:09 +02:00
wout
78769ed894 Workaround for Solaris, as it does not support non-greedy regex 2021-08-10 09:25:09 +02:00
wout
ee73d4e583 Catch the situation when the TXT record is updated with the same value 2021-08-10 09:25:09 +02:00
wout
2ef8705b4f While [0-9]+ is a bit more correct than [0-9]*, the former does not seem to work on Solaris. 2021-08-10 09:25:09 +02:00
wout
2f99a52f12 Retrigger checks 2021-08-10 09:25:09 +02:00
wout
ec184b1b59 Retrigger checks 2021-08-10 09:25:09 +02:00
wout
2899d69686 Fix typo 2021-08-10 09:25:09 +02:00
wout
7a010a2b8c Improve the remove handling so it does not print errors 2021-08-10 09:25:09 +02:00
wout
ae74ec7557 Fix checks 2021-08-10 09:25:09 +02:00
wout
64e41a8056 Add wildcard certificate support for dns_constellix 2021-08-10 09:25:09 +02:00
neilpang
3428fe9b34 fix freebsd 2021-08-10 09:25:09 +02:00
qkdreyer
0c76959b5a fix: prevent rate limit 2021-08-10 09:25:09 +02:00
Quentin Dreyer
d15a53b809 feat: add dns_porkbun 2021-08-10 09:25:09 +02:00
neil
07809a4e6e fix format 2021-08-10 09:25:09 +02:00
neil
88e758df0d fix https://github.com/acmesh-official/acme.sh/issues/3312 2021-08-10 09:25:09 +02:00
anom-human
b3b347769e 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:25:09 +02:00
anom-human
27725bb2d3 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:25:09 +02:00
neilpang
282269885e fix format 2021-08-10 09:25:09 +02:00
neilpang
a95bf7d374 fix https://github.com/acmesh-official/acme.sh/issues/3019 2021-08-10 09:25:09 +02:00
neilpang
22a377f04a fix https://github.com/acmesh-official/acme.sh/issues/3433 2021-08-10 09:25:09 +02:00
Lukas Brocke
06b04cb60c 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:25:09 +02:00
Kristian Johansson
c705c5e778 Adds comment 2021-08-10 09:25:09 +02:00
Kristian Johansson
56f032ee82 Fixes response handling and thereby allow issuing of subdomain certs 2021-08-10 09:25:09 +02:00
neilpang
e0946b822d fix https://github.com/acmesh-official/acme.sh/issues/3402 2021-08-10 09:25:09 +02:00
Geert Hendrickx
3bb1986bb5 No need to include EC parameters explicitly with the private key.
(they are embedded)
2021-08-10 09:25:09 +02:00
czeming
817ccba687 Update dns_dp.sh
没有encode中文字符会导致提交失败
2021-08-10 09:25:09 +02:00
medmunds
60027ca7fe 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:25:09 +02:00
medmunds
f8ee124742 Prefer Python to curl when both available 2021-08-10 09:25:09 +02:00
medmunds
3cfb423e89 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:25:09 +02:00
medmunds
9570cce7e3 Add Date email header in Python implementation 2021-08-10 09:25:09 +02:00
medmunds
d4fde8dad3 Clarify _readaccountconf_mutable_default 2021-08-10 09:25:09 +02:00
medmunds
c7ce0fd780 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:25:09 +02:00
medmunds
d9df5df2d0 Implement _rfc2822_date helper 2021-08-10 09:25:09 +02:00
medmunds
a4590b9707 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:25:09 +02:00
medmunds
c2a4f31368 Add _clearaccountconf_mutable() 2021-08-10 09:25:09 +02:00
medmunds
362bd62152 Use PROJECT_NAME and VER for X-Mailer header
Also add X-Mailer header to Python version
2021-08-10 09:25:09 +02:00
medmunds
7f1586678c More than one blank line is an abomination, apparently
I will not try to use whitespace to group code visually
2021-08-10 09:25:09 +02:00
medmunds
897db8d038 Implement curl version of smtp notify-hook 2021-08-10 09:25:09 +02:00
medmunds
03c8cacb67 Prep for curl or Python; clean up SMTP_* variable usage 2021-08-10 09:25:09 +02:00
medmunds
3aec3fc436 Add instructions for reporting bugs 2021-08-10 09:25:09 +02:00
medmunds
897be36a26 Only save config if send is successful 2021-08-10 09:25:09 +02:00
medmunds
dd2844d5b8 Make shfmt happy
(I'm open to better ways of formatting the heredoc
that embeds the Python script.)
2021-08-10 09:25:09 +02:00
medmunds
e770250bb9 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:25:09 +02:00
neilpang
7597fb0566 make the fix for rsa key only 2021-08-10 09:25:09 +02:00
neilpang
2b14a17c85 support openssl 3.0
fix https://github.com/acmesh-official/acme.sh/issues/3399
2021-08-10 09:25:09 +02:00
Easton Man
5a6f672a6f fix: fix freebsd and solaris 2021-08-10 09:25:09 +02:00
Easton Man
2413baef55 feat: add huaweicloud error handling 2021-08-10 09:25:09 +02:00
Mike Edmunds
81751c0aa9 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:25:09 +02:00
jerrm
b621185867 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:25:09 +02:00
neilpang
bb10f748b1 upgrade freebsd and solaris 2021-08-10 09:25:09 +02:00