Distributing your application by self hosting it on a
website requires a certificate signed by a
Certificate Authority known to Windows.

Use the following instructions to generate a
self-signed .pfx certificate.

If you haven’t already, download the OpenSSL
toolkit to generate your certificates.

Go to where you installed OpenSSL, for example,
C:\Program Files\OpenSSL-Win64\bin.

Set an environment variable so that you can access
OpenSSL from anywhere:
"C:\Program Files\OpenSSL-Win64\bin"

Generate a private key as follows:
openssl genrsa -out mykeyname.key 2048

Generate a certificate signing request (CSR)
file using the private key:
openssl req -new -key mykeyname.key -out mycsrname.csr