Mac Big Sur error using openssl to generate private key for JWT

Hello recently upgraded to Big Sur and getting this error below. I was able to run essentially the same command on Catalina. Anyone know a workaround?

Ran this command on terminal
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub

Got this error
Error opening Private Key jwtRS256.key
4686102188:error:02FFF002:system library:func(4095):
No such file or directory:/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-56.40.4/libressl-2.8/crypto/bio/bss_file.c:255:fopen('jwtRS256.key', 'r')

So Big Sur for some reason does not have openssl installed by default. So I installed openssl using brew install openssl. Then I added it to my path.

But also I had the order of my commands wrong. I left out the first command to create the key to begin with.

ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key