I would like to create a temporary certificate (required for build a metro app) by command prompt. I had try to do this with CMD :
makecert.exe -n "CN=MY_DOMAIN" -r -a sha1 -sv MY_DOMAIN.pvk MY_DOMAIN.cer –ss root
pvk2pfx -pvk MY_DOMAIN.pvk -spc MY_DOMAIN.cer -pfx MY_DOMAIN.pfx
But when I this pfx file in my project, I have the following error :
C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(1142,9):
error : APPX0107 : the specified certificate is not valid for signing.
Three changes:
-eku 1.3.6.1.5.5.7.3.3argument tomakecert.Mycertificate store rather than the root certificate store by replacing-ss rootwith-ss My.-cy endargument to makecert.See MSDN Signing an app package (Windows Store apps) for more information on signing Windows Store apps and MakeCert for more information on makecert arguments.