I want to codesign an .exe file using an API rather than running signtool.exe. The documentation for SignerSignEx is here:
http://msdn.microsoft.com/en-us/library/aa387734(VS.85).aspx
It seems to be recommended as a modern replacement for the CapiCom library, based on this documentation:
http://msdn.microsoft.com/en-us/library/aa375732(VS.85).aspx#_crypto2_digital_signature_objects
Is there any sample code somewhere for how to use it?
You can find a simple enough sample here in Alejandro Campos Magencio's post.
It begins with CAPICOM, but fear not, the second half is about SignerSignEx. It also ends with a troubleshooting tip.
I've always used signtool.exe myself. Are you having any issues with it?
G'luck
Related
I normally comment and uncomment code with XCode using this command:
(command+slash)
This works just fine for swift file, but it does NOT work for javascript files. Is there way I can configure XCode to do this for all files?
I don't think it's possible to extend the standard comment out command to Javascript as well, sorry :-(
Having said that, you could try adding a custom shortcut following these steps. (But might be tricky to completely reproduce the native comment out behavior.)
I am looking for some NTLM challenge-response authentication codes I can embed in my xcode project (for my iPhone app) so for example, with input of password and 8 bytes of challenge, the code can generate 24 bytes response.
I check samba source code and find that it is impossible for me to cut the part doing NTLM challenge-response authentication and add it to my xcode project. So any other source I can resort to ?
Thanks!
The full specification is available from Microsoft as an Open Specification. I'm not aware of an Objective C implementation, so it may be easiest to simply build your own from the specification.
I finally managed to solve it.
So first I need to add openssl to my iPhone project b/c I need to MD4 and DES. I am not sure if there is other way to get MD4 & DES. And thankfully someone has already added openssl to xcode, check here http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/
Then add ntlm implementation upon that. I used the sample code here, http://www.innovation.ch/personal/ronald/ntlm.html
A note though, that sample code has some problem (it took me several hours figured that out). But we can also use keywords there(the function name) to do google code search to find correct implementation.
Ghostscript 9.0 doesn't support validation of the digital signatures in PDF document when doing PDF to image conversion. Instead, there's a question mark on the digital signature, and Ghostscript reports "Sig is not yet implemented". I'm thinking to modify the source code to get rid of the question mark, but I don't have any ideas to where I should modify in thesource code. Could any one give the hints for that? Any response will be appreciated highly, thanks.
Have you already tested the very latest release (which is v9.02)? If so, have you also tested the current 'HEAD' revision of their source code?
If your problem persists with these versions, the preparatory thing to start with is to download the (current, which is v9.02) Ghostscript source code from here or even check it out from their Git repository.
What you are trying to do can only be located in one of the following two modules of the Ghostscript source code:
the (PDF) interpreter
the (image) output devices
So I would first recursively grep the sources for "not yet implemented" or similar expressions, taking into account that there may even be line breaks within the string. (***I doubt the quote you gave in your initial version of the question is accurate, because it contained at least one typo.)
If I didn't find anything in the first step, I'd get into touch with the Ghostscript developers themselves. They usually hang around in IRC on Freenode, channel #ghostscript. In general they are a very friendly and helpful bunch, and they'll surely be able to give you some hints about how to solve your problem if you know how to ask...
I'm using Sparkle in my Application to do updates but in the documentation it says to generate a DSA Signature and provides a tool to do is (the tool is coded in ruby) but i don't know how to use it. Can someone help?
This is where the documentation is (Step 3): http://sparkle.andymatuschak.org/documentation/pmwiki.php/Documentation/BasicSetup?from=Main.HomePage
Google'd the command string, and got a handful of hits.
Most useful:
https://answers.launchpad.net/sparkle/+question/50496
Quoting the author:
It's a script; you need to run it from
the command line.
Open the terminal. Change into the
Sparkle distribution directory. Type:
ruby "Extras/Signing
Tools/generate_keys.rb"
Follow the instructions on the wiki
from there.
Also, I'd highly recommend looking at Feeder for constructing your Sparkle RSS feed. It can generate a DSA signature for you automatically, once you drag your binary into an update entry. It also can upload your binaries and feed to your server for you. Overall, it's saved me a tremendous amount of time with my Sparkle feeds.
Indeed Sparkle Basic wiki page is a bit misleading. For everyone how still gets confused with process, here are necessary steps:
go to Extras/Signing Tools subfolder
generate dsa private/public key pair:
ruby generate_keys.rb
Note that there is bug with this script in Sparkle 1.56b, so it might be better to take it from here: updated generate_keys.rb script
using sign_update.rb script (from same folder) you will generate dsa signature:
ruby sign_update.rb
For months now I've been trying to find a code syntax formatting extension that works for BlogEngine.Net. I'm not fond of the behavior of the default formatting extension, and have tried a couple of others (manoli is among them), but they always seem to interact badly with the TinyMCE editor. Does anyone know of an extension that works, or a different approach that will allow me to make code samples pretty on my blog without hacking the crap out of the HTML myself?
Thanks.
I would try using Windows Live Writer along w/ the Paste From Visual Studio plugin. One you go WLW, you'll never go back to that damn TinyMCE interface.
WLW here:
http://get.live.com/writer/overview
Plugin here:
http://gallery.live.com/liveItemDetail.aspx?li=d8835a5e-28da-4242-82eb-e1a006b083b9&l=8
Thanks, Rafe. Thanks to this post that Hanselman put up the day after I asked the question, I downloaded WLW and am now using it. As far as getting prettily formatted code, I'm using cut-and-paste from a little tool developed and available on manoli.net.
Check out SyntaxHighlighter.. Works excellent. For easy integration into BlogEngine have a look at my blog post.