Creating Self-Signed Certificate in Windows

Follow these instructions to create a self-signed certificate in Windows.

$ makecert -sv file.pvk -n "CN=Name" file.cer -b 01/01/2018 -e 01/01/2030 -r

$ pvk2pfx -pvk file.pvk -spc file.cer -pfx file.pfx -po <PASSWORD>

Then double click on the PFX and add it to the “Trusted people” group, in the “Local Machine.”

Pay attention to the -n "CN=Thing" parameter using CN so that the makecert command works! Also, the CN parameter should be the same name of the publisher

More Information