I see you get the error permission denied in step 3, because you want to write the output file in C: root folder. Make sure to open command prompt with Administrator permissions, and then type:
"C:\OpenSSL\bin\openssl.exe" genrsa -out "private.key" 2048