OpenSSL error trying to use mongosh on AWS Linux EC2

I am getting the following error trying to use mongosh 2.1.5 on a new EC2 instance.

[ec2-user@ip-10-0-1-44 ~]$ mongosh
mongosh: OpenSSL configuration error:
0018BBA26C7F0000:error:030000A9:digital envelope routines:alg_module_init:unknown option:…/deps/openssl/openssl/crypto/evp/evp_cnf.c:61:name=rh-allow-sha1-signatures, value=yes

I was going to try to use mongosh to start diagnosing why I can’t connect after setting up VPC peering, but now I can’t even get mongosh to work.

Note that I was able to fix this by instead installing the “openssl3” package from the below URL instead.

Open the openssl configuration, then find the rh-allow-ssa1-signatures line and remove it from the configuiration and save it.