V
vt_asparagus
I am messing around with test certificates to see how they work. I
wanted to use the MakeCert.exe located within C:\Program
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin to create a test
cert to play with. I quickly found out that I had to take several
other steps to build the certificate.
Here are some command line statements I had to run:
cd C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin
makecert -sv testCertKey.pvk -n
"CN=AsparagusCertificate,OU=Delivery,O=Asparagus,C=US" -r testCert.cer
cert2spc testcert.cer testcert.spc
pvkimprt -IMPORT testCert.spc testCertkey.pvk
You will need to go out and install the pvkimprt tool. Anyways, I can
now see the certificate in InfoPath and I can Sign my Template of my
test form by going to Tools >> Security. (I know I can create a
certificate in InfoPath but I wanted to try it this way.)
Here is new issue, when I try to use the InfoPath form that I signed
with the certificate on another machine for testing purposes I get the
following warning when I open it up (I created the form on a host
machined and then threw it onto a VPC).
"The selected form cannot be opened correctly because it was signed
with a certificate that is not available on this machine. To remove
the certificate and open the form, click OK. Note that removing the
certificate might require users to delete and reinstall the form on
their computer. In addition, forms requiring full trust will not open
correctly unless they are signed with a trusted signature."
This leads me to believe that I needed to install the certificate I
created on my host machined onto my VPC. That did not work. I then
tried rebuilding the certificate on the VPC from scratch using the same
steps and open the InfoPath form and I again got the same issue. How
can I get this to work?
wanted to use the MakeCert.exe located within C:\Program
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin to create a test
cert to play with. I quickly found out that I had to take several
other steps to build the certificate.
Here are some command line statements I had to run:
cd C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin
makecert -sv testCertKey.pvk -n
"CN=AsparagusCertificate,OU=Delivery,O=Asparagus,C=US" -r testCert.cer
cert2spc testcert.cer testcert.spc
pvkimprt -IMPORT testCert.spc testCertkey.pvk
You will need to go out and install the pvkimprt tool. Anyways, I can
now see the certificate in InfoPath and I can Sign my Template of my
test form by going to Tools >> Security. (I know I can create a
certificate in InfoPath but I wanted to try it this way.)
Here is new issue, when I try to use the InfoPath form that I signed
with the certificate on another machine for testing purposes I get the
following warning when I open it up (I created the form on a host
machined and then threw it onto a VPC).
"The selected form cannot be opened correctly because it was signed
with a certificate that is not available on this machine. To remove
the certificate and open the form, click OK. Note that removing the
certificate might require users to delete and reinstall the form on
their computer. In addition, forms requiring full trust will not open
correctly unless they are signed with a trusted signature."
This leads me to believe that I needed to install the certificate I
created on my host machined onto my VPC. That did not work. I then
tried rebuilding the certificate on the VPC from scratch using the same
steps and open the InfoPath form and I again got the same issue. How
can I get this to work?