C
Chuck P
I am trying to sign a click once application vs08sp1.
I use the following batch file to generate the pfx file.
When in the project properties Sigining page I click Select From File.
I input the file and it asks for a password.
The documentation says it won't ask for a password.
http://msdn.microsoft.com/en-us/library/che5h906.aspx
Since I don't have a password, how do I proceed?
set AppName=TheNameOfYourApplication
set sourcePath="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin"
set destinationPath=c:
@echo off
cls
echo.
echo Creating Personal Information Exchange (PFX) file to hold the
encryption certificate and
echo private key needed for click once deployment.
echo Once deployed never rerun this command.
echo.
echo For password prompt enter none.
echo.
echo Press Ctrl-C to abort or
@pause
cls
echo.
echo deleting any existing files.
del %AppName%_Certificate.cer
del %AppName%_PrivateKey.pvk
del %AppName%_Exchange.pfx
echo.
echo making cert and private key
%sourcePath%\makecert -r -pe -e 01/01/2058 -n "CN=%AppName%" -sv
%AppName%_PrivateKey.pvk %AppName%_Certificate.cer
echo.
echo Making Personal Information Exchange (PFX) file
%sourcePath%\pvk2pfx.exe -pvk %AppName%_PrivateKey.pvk -spc
%AppName%_Certificate.cer -pfx %AppName%_Exchange.pfx
echo.
echo Copying (PFX) file to destination %destinationPath%
copy %AppName%_Exchange.pfx %destinationePath%\*.* /Y
echo.
echo deleting any existing files.
del %AppName%_Certificate.cer
del %AppName%_PrivateKey.pvk
del %AppName%_Exchange.pfx
echo.
@pause
I use the following batch file to generate the pfx file.
When in the project properties Sigining page I click Select From File.
I input the file and it asks for a password.
The documentation says it won't ask for a password.
http://msdn.microsoft.com/en-us/library/che5h906.aspx
Since I don't have a password, how do I proceed?
set AppName=TheNameOfYourApplication
set sourcePath="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin"
set destinationPath=c:
@echo off
cls
echo.
echo Creating Personal Information Exchange (PFX) file to hold the
encryption certificate and
echo private key needed for click once deployment.
echo Once deployed never rerun this command.
echo.
echo For password prompt enter none.
echo.
echo Press Ctrl-C to abort or
@pause
cls
echo.
echo deleting any existing files.
del %AppName%_Certificate.cer
del %AppName%_PrivateKey.pvk
del %AppName%_Exchange.pfx
echo.
echo making cert and private key
%sourcePath%\makecert -r -pe -e 01/01/2058 -n "CN=%AppName%" -sv
%AppName%_PrivateKey.pvk %AppName%_Certificate.cer
echo.
echo Making Personal Information Exchange (PFX) file
%sourcePath%\pvk2pfx.exe -pvk %AppName%_PrivateKey.pvk -spc
%AppName%_Certificate.cer -pfx %AppName%_Exchange.pfx
echo.
echo Copying (PFX) file to destination %destinationPath%
copy %AppName%_Exchange.pfx %destinationePath%\*.* /Y
echo.
echo deleting any existing files.
del %AppName%_Certificate.cer
del %AppName%_PrivateKey.pvk
del %AppName%_Exchange.pfx
echo.
@pause