Try adding -legacy to your command
-legacy
according to https://github.com/openssl/openssl/discussions/23089