-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #183: opendkim-testkey: Allow testing ed25519 keys #208
base: develop
Are you sure you want to change the base?
Issue #183: opendkim-testkey: Allow testing ed25519 keys #208
Conversation
…s in libopendkim instead of dkimf_canon and dkimf_sign.
…ield * opendkim/opendkim.c (): Add forward declaration for dkimf_lookup_strtoint (dkimf_add_signrequest): Extract sign algorithm from 4th field in key table and set it in the sign request. (dkimf_config_load): Allow 4th field in key table value.
…-expose-nametables
…-sign-algorithm
…ibopendkim-dkim_test_key-ed25519-support
Note: It seems this does not work with OpenSSL 1.1.1k (on CentOS 7, openssl11 package installed from EPEL). It fails with the error below:
|
It seems even OpenDKIM develop branch head with some patches from PRs, with OpenSSL 1.1.1k cannot handle ed25519 private key PEM files created by OpenSSL 1.1.1k or 3.0.11, 3.0.12. It is not only opendkim-testkey but also opendkim milter, which adds broken signing header with those keys. |
…ibopendkim-dkim_test_key-ed25519-support
…ibopendkim-dkim_test_key-ed25519-support Fix issue trusteddomainproject#183: Allow opendkim-testkey to check KeyTable containing signing algorithm ed25519-sha256.
This is a fix address issue #183, adding support for ed25519 keys to
opendkim-testkey
.With PR #202, we can use more than one algorithm/key type in a KeyTable. However as issue #183 says, libopendkim function
dkim_test_key()
does not support ed25519 keys.So I add new function
dkim_test_key2()
, extendingdkim_test_key()
so that we can pass an algorithm associated with the key, and support ed25519 keys. For the API compatibility, function interface fordkim_test_key()
is not changed.As this PR requires PR #162, #207, and #202, they are already merged in this branch. So new code is only with in the last commit.