Before questioning here. I\'ve searched a lot about my problem. And problem is still exists. Below is the references of posts, which I\'ve already read.
The req command creates a certificate request by default, not a certificate. If you add the -x509 argument, it will self-sign the request using the provided key, and output a certificate instead. You should then be able to create the .pfx successfully.