signing

creating a key and signing executable with signtool

大憨熊 提交于 2019-11-29 07:44:32
How would I sign a Visual C# executable? SignTool.exe can't find a certificate. How would I create a self signed key and certificate, and have signtool be able to see the certificate and use it? OpenSSL and Visual Studio 2010 Express are installed. Running Windows 7 Ultimate x64. Using SignTool.exe from Windows Driver Kit. Using self-signed certificates for digitally signing your binaries pretty much goes against the concept of using digital certificates with programs. The basic idea is to prove the code was created by you (authenticity) and has not been modified since you released it

SHA256 signing stops working in .NET 4.5

瘦欲@ 提交于 2019-11-29 05:37:39
We have a piece of code which creates a SigningCredentials object to use to sign xml document by using SHA256 algorithm. It works with .NET 3.5 perfectly. However, when we upgrade our codebase to .NET 4.5, it stops working. Same code, same certificate! I have spent hours on debugging and searching on the internet without any luck. Could anyone please tell me what the problem here is? Thank you in advance. Code to create SigningCredentials: public SigningCredentials CreateSigningCredentials(X509Certificate2 cert) { var ski = new SecurityKeyIdentifier(new X509RawDataKeyIdentifierClause(cert));

How to use jarsigner for signing an apk?

◇◆丶佛笑我妖孽 提交于 2019-11-29 02:36:49
问题 I have very little programming knowledge.I am able to open jar signer through the command prompt then I get various jar signer options,which i do not know how to use them.Can anyone explain me what should i type in the command prompt in order to sign the app? 回答1: You can find all the information you need about this topic on d.android.com: http://developer.android.com/tools/publishing/app-signing.html#signapp jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key

How to sign an android app for the market?

非 Y 不嫁゛ 提交于 2019-11-28 23:19:35
问题 I've recently released my first app on the market. I tried to install the app on my phone immediately after it was released. But when installing it I got an error saying that the app was wrongly signed. I also got lots of bad ratings for my app because other people couldn't install it as well. So my question is: how can I sign my app correctly? Is there any way to test the result before releasing the app on the market? BTW: I used the built in function of eclipse to export the signed apk file

How do I sign a PDF document using a certificate from the Windows Cert Store?

╄→гoц情女王★ 提交于 2019-11-28 12:18:11
I need to sign a PDF document using a certificate that exists in the Windows Certificate Store. I have been digging around all day trying to figure it out, and I am so close yet so far away . All that is missing is this: How do I get an IExternalSignature object to sign the PDF file with? Rahul Singla has written a beautiful example of how to sign a PDF document using the new iText 5.3.0 API - as long as you can access a .pfx file sitting around on your PC somewhere. There is a previous question on signing using a certificate from the Windows Cert Store, except it was using a version of the

verifying a file signature with openssl dgst

你。 提交于 2019-11-28 04:07:17
I am signing packets in some Java code and I want to verify the signatures on a C server. I want to fork openssl for this purpose (can always use library functions later... when I know openssl can verify the signatures); however, it's failing to do so: openssl dgst -verify cert.pem -signature file.sha1 file.data all it says is " unable to load key file " The certificate says: openssl verify cert.pem cert.pem: /C=.... error 20 at 0 depth lookup:unable to get local issuer certificate However, I specifically don't care about verifying the certificate, I want only to verify the signature for a

How can I add private key to the distribution certificate?

穿精又带淫゛_ 提交于 2019-11-28 03:38:56
Well, I've got my Developer Certificate linked with it's private key. Works Fine. I've downloaded my iOS Profile of distributor, but it says Valid signing identity not found. So I checked my certificates, and exactly, my developer certificate it's linked with its private key but not my distribution certificate. How can I link/add my private keys to this certificate!? Will this solve the problem "Valid Signing identity not found"? Yes, the error you are getting means that there is not a private key on your Mac associated with the distribution certificate you are trying to use to sign the app.

signtool fail with Inno Setup with exit code 0x1

别说谁变了你拦得住时间么 提交于 2019-11-28 01:21:55
Suddenly my Inno Setup compiler stopped working. Since the last time I used it, I just installed a new certificate issued still to the same company. I've configured the sign tool in this way (NAME is the beginning of the string for the Subject in the certificate): mysigntool="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe" sign /v /a /s my /n NAME /t http://timestamp.verisign.com/scripts/timestamp.dll And then in the Inno Setup .iss file I have: SignTool=mysigntool SignedUninstaller=yes The sign always fails with exit code 0x1, also if I remove the /t and timestamp.

Best practices for signing .NET assemblies?

这一生的挚爱 提交于 2019-11-27 17:17:39
I have a solution consisting of five projects, each of which compile to separate assemblies. Right now I'm code-signing them, but I'm pretty sure I'm doing it wrong. What's the best practice here? Sign each with a different key; make sure the passwords are different Sign each with a different key; use the same password if you want Sign each with the same key Something else entirely Basically I'm not quite sure what "signing" does to them, or what the best practices are here, so a more generally discussion would be good. All I really know is that FxCop yelled at me, and it was easy to fix by

Get rid of the “UNKNOWN” publisher from applet security warning

给你一囗甜甜゛ 提交于 2019-11-27 06:40:20
问题 I'm trying to sign an applet so that the publisher does not appear as " UNKNOWN " : I work for an organisation and we have our own certification authority , certificate chain is the following : ORG Root CA > ORG Trusted Certification Authority > Yann39 (me :D) I requested a certificate and they provided me a link to get it into the browser. Then I exported it (from Firefox) to get the PKCS#12 file that I named mystore.p12 . Then I did the following to sign my applet : /* TO KNOW THE ALIAS */