Thanks Paul,
Not sure if I missed something in the translation, this is what i tried.
Can you check.
Thanks
OpenSSL> genrsa -des3 -out merchantprivatekey.pem -passout pass:Test1 1024
Loading 'screen' into random state - done
Generating RSA private key, 1024 bit long modulus
........++++++
...++++++
e is 65537 (0x10001)
worked fine and have output file, merchantprivatekey.pem
Then
C:\Server\Apache2\bin>openssl
OpenSSL> req -x509 -config openssl.cnf -new -key merchantprivatekey.pem -passin pass:Test1 -days 365 -out merchantprivatecert.cer
error on line -1 of openssl.cnf
6112:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\bss_file.c:122:fopen('openssl.cnf','rb')
6112:error:2006D080:BIO routines:BIO_new_file:no such file:.\crypto\bio\bss_file.c:125:6112:error:0E078072:configuration file routines:DEF_LOAD:no such file:.\crypto\conf\conf_def.c:197:error in req
OpenSSL>