How to Config OpenSSL on Replit?

Question: I want to config openSSL to make it work for legacy algorithms, i have tried directly configuring /etc/ssl/openssl.cnf but i need sudo permission for that. so i tried writing config to a file and set OPENSSL_CONF variable but its not working as expected.


Repl link: https://replit.com/@bipinkrish/DeGourou

[provider_sect]
default = default_sect
legacy = legacy_sect

[default_sect]
activate = 1
[legacy_sect]
activate = 1