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:

default = default_sect
legacy = legacy_sect

activate = 1
activate = 1