fix: dont put multiple keys into one dane record
Some checks failed
/ test (push) Successful in 1m1s
/ codestyle (push) Successful in 1m38s
/ easywksserver_gpgwksclient (push) Failing after 1m21s

This commit is contained in:
s3lph 2024-05-31 16:11:04 +02:00
parent 19cde32909
commit b3e66b91c3
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
3 changed files with 15 additions and 2 deletions

View file

@ -1,5 +1,18 @@
# EasyWKS Changelog
<!-- BEGIN RELEASE v0.4.6 -->
## Version 0.4.6
Bugfix release
### Changes
<!-- BEGIN CHANGES 0.4.6 -->
- Fix: Don't put multiple keys into a DANE record
<!-- END CHANGES 0.4.6-->
<!-- END RELEASE v0.4.6 -->
<!-- BEGIN RELEASE v0.4.5 -->
## Version 0.4.5

View file

@ -1,2 +1,2 @@
__version__ = '0.4.5'
__version__ = '0.4.6'

View file

@ -99,7 +99,7 @@ def write_public_key(domain, user, key, revoked):
danefile = os.path.join(Config.working_directory, domain, 'dane', dane)
joined = bytes(key) + b''.join([bytes(k) for k in revoked])
_locked_write(keyfile, joined, binary=True)
_locked_write(danefile, joined, binary=True)
_locked_write(danefile, key, binary=True)
dane_notify(domain)