digital-certificate

WCF client for consuming ASMX service with WS-Security

眉间皱痕 提交于 2020-01-14 06:15:26
问题 I have a ASMX web service (SOAP 1.1) that requires to sign all SOAP requests with certificate (private key) using WS-Security. When the ASMX service receives the request, it will authenticate it using the public key of the certificate. After the operation is done, the response sent back to the client will not be signed! That's the security requirements... I've created the proxy via 'Add Service Reference' and the client's app.config: <?xml version="1.0" encoding="utf-8"?> <configuration>

Sending Encrypted Email S/MIME with PHP

久未见 提交于 2020-01-07 04:49:09
问题 I have been looking a lot online but I didn't find an answer, is it possible to send encrypted emails S/MIME using PHP? if it is, how? (im using cakephp 2.x) Thank you very much in advance 回答1: I managed to find a solution to this using PHPMailer, It applies to regular PHP as well. It will sign and encrypt the email, I couldn't find a way to do both with PHPMailer (sign and encrypt) only sign so I added some code to class.phpmailer.php. It stills need to add some error handling in case of an

How do I programmatically remove a certificate in Trusted Root Certification Authorities?

纵饮孤独 提交于 2020-01-03 17:13:27
问题 I need to be able to remove a specific certificate from each PC in my organization. Yes, I could go seat-to-seat, but I have until Thursday to pull it off, and I don't have the manpower to go seat-to-seat. Is there a programmatic way of doing this using C#? 回答1: I don't think you need to crank out any C# - take a look at certmgr.exe /del. If you really do want to write some C# today to do this, then take a look at X509Store.Remove. 回答2: There's an example in MSDN (click here) I think the

Retrieve information about digital signature of a non-exe file?

自古美人都是妖i 提交于 2020-01-03 05:18:11
问题 I know that I can use the following code to retrieve information about a digital signature of an executable file using X509Certificate class: X509Certificate cert = X509Certificate.CreateFromSignedFile("MySignedProgram.exe"); string certSubject = cert.Subject; My question is how to retrieve a digital certificate details from a non-exe file, for instance, a signed .js or .vbs file? PS. This native code and CryptQueryObject API seem to do the job correctly. But I'm curious if there's an analogy

Auto-enable macro with digital cert?

[亡魂溺海] 提交于 2020-01-03 03:05:33
问题 So will a digital certificate that is issued from a trusted signing authority, when used to sign an Excel document, allow the document to automatically run macros? Does it make a difference whether the signature is self signed or signed by a certificate authority in terms of what the user sees? Similar to when you use a verisign issued certificate on a webpage, the machine usually autmatically trusted certificates issued by that authority. I am wondering if the behavior in Excel is similar. I

How can I add a certificate to VBA Access project if the Digital Signature item doesn't appear in the Tools menu?

不打扰是莪最后的温柔 提交于 2019-12-30 07:09:08
问题 I am trying to get an Access 2000 database to run in the Access 2010 runtime and remove the warning dialog about the file not being trusted. I have done some research and discovered the SelfCert.exe program. This is a good tutorial on certificates. And this, too. Even Microsoft had instructions for Access 2000 indicating that this menu item should exist. However, my Tools menu in the Access 2000 VBA IDE does not have the Digital Signature menu item. What's worse is that when I right-click on

How Digital certificates provides extra security on top of SSL [closed]

随声附和 提交于 2019-12-25 01:53:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . My legacy Application is on https(SSL). On top of that i can see some users are configured to use digital certificates which are created by my own CA using OpenSSL? With this i have got CAcert.pem and CAkey.pem which are used to create digital certificates for user who requests for it(thru CSR). My understanding

How to locate new certification using Certutil?

情到浓时终转凉″ 提交于 2019-12-24 12:42:15
问题 I need to create a new cert and then locate it to obtain the serial number (to use it later to get the public and private keys). If I make a new certificate with makecert utility from Microsoft SDK's like this: makecert -r -pe -a sha1 -n "CN=ElektroSoft" -b 01/01/2013 -e 01/01/2050 -ss my -$ individual Then I suppose that cert will be stored in "my"... ..But when I try to list the "my" certificates I only get one entry, and is not my new certificate: C:\>CERTUTIL -store my my ================

Can't add ltv to PDF document. Error

柔情痞子 提交于 2019-12-24 10:46:09
问题 I'm sign document, using Itext. I have that method: public static void sign(String src, String dest, Certificate[] chain,PrivateKey pk, String digestAlgorithm, String provider,CryptoStandard subfilter, TSAClient tsa ) { // Creating the reader and the stamper PdfReader reader = new PdfReader(src); FileOutputStream os = new FileOutputStream(dest); PdfStamper stamper = PdfStamper.createSignature(reader, os, '\0'); // Creating the appearance PdfSignatureAppearance appearance = stamper

SignTool.exe Sporadically Fails with Exit Code 1

那年仲夏 提交于 2019-12-23 07:55:08
问题 As part of our build system, we use signtool.exe with a certificate to sign our binaries once they've been built. Occasionally (it's hard to tell when it will strike), the signing fails: error MSB3073: The command "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\signtool.exe" [...] exited with code 1. According to the MSDN, an exit code of 1 means that there was an error signing the file. I can verify that the file didn't get signed. I've also noticed that occasionally, the timestamp