diff options
Diffstat (limited to 'tests/signature/tst_signature.cpp')
-rw-r--r-- | tests/signature/tst_signature.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/signature/tst_signature.cpp b/tests/signature/tst_signature.cpp index 9f48590a..ccf86474 100644 --- a/tests/signature/tst_signature.cpp +++ b/tests/signature/tst_signature.cpp @@ -32,6 +32,7 @@ #include "global.h" #include "signature.h" +#include "cryptography.h" QT_USE_NAMESPACE_AM @@ -55,7 +56,14 @@ private: }; tst_Signature::tst_Signature() -{ } +{ + // OpenSSL3 changed a few defaults and it will not accept old PKCS12 certificates + // anymore. Regenerating "signing.p12" doesn't help, because the macOS/iOS + // SecurityFramework cannot deal with the new algorithms used by OpenSSL3. + // The only way out for this cross-platform test case is to enable the so called + // "legacy provider" in OpenSSL3 and continue testing with the old certificate. + Cryptography::enableOpenSsl3LegacyProvider(); +} void tst_Signature::initTestCase() { |