digital-signature

How to digital sign a PDF with PHP [closed]

怎甘沉沦 提交于 2020-01-04 05:42:14
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . After some searching how I could digital sign a PDF document with PHP I couldn't really find a working solution. Does anybody know how

Pades LTV verification in itextsharp throws The Uri Prefix is not Recognized

狂风中的少年 提交于 2020-01-04 04:36:04
问题 I have successfully signed a pdf with LTV support. I can check the pdf and LTV signature is valid through Adobe Acrobat Reader and also with an external validator. I'm trying to make the same validation with iTextSharp 5.5.10. I'm following the iText sample code C5_06 But when I call to ltvVerifier.Verify , I am getting a System.NotSupportedException, The Uri Prefix is not Recognized . I am loading the certificate used to sign the pdf en cert parameter. Validation code: public static bool

I get 0x80070057 error code on certcreatecertificatechainengine func

感情迁移 提交于 2020-01-03 21:02:20
问题 I use visual studio 2013 and windows 7 32bit. I want to verify digital signature by root and chain of certificate. So I get 0x80070057 error code in certcreatecertificatechainengine(). bool result = false; HCERTCHAINENGINE hChainEngine; CERT_CHAIN_ENGINE_CONFIG ChainConfig; PCCERT_CHAIN_CONTEXT pChainContext; //PCCERT_CHAIN_CONTEXT pDupContext; HCERTSTORE hCertStore; //PCCERT_CONTEXT pCertContext = NULL; CERT_ENHKEY_USAGE EnhkeyUsage; CERT_USAGE_MATCH CertUsage; CERT_CHAIN_PARA ChainPara;

PHP openssl_sign() ecparam key type not supported in this PHP build

给你一囗甜甜゛ 提交于 2020-01-03 18:16:11
问题 openssl_sign is returning the signature string but printing this error. I am using elliptic curve key Warning: openssl_sign() [function.openssl-sign]: key type not supported in this PHP build! in 回答1: An issue has been filed in the php issue tracker for this: https://bugs.php.net/bug.php?id=66501 来源: https://stackoverflow.com/questions/10411450/php-openssl-sign-ecparam-key-type-not-supported-in-this-php-build

PHP openssl_sign() ecparam key type not supported in this PHP build

99封情书 提交于 2020-01-03 18:16:08
问题 openssl_sign is returning the signature string but printing this error. I am using elliptic curve key Warning: openssl_sign() [function.openssl-sign]: key type not supported in this PHP build! in 回答1: An issue has been filed in the php issue tracker for this: https://bugs.php.net/bug.php?id=66501 来源: https://stackoverflow.com/questions/10411450/php-openssl-sign-ecparam-key-type-not-supported-in-this-php-build

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

retrieve the pkcs7 file from pdf and co-sign

心已入冬 提交于 2020-01-03 04:52:09
问题 I have a PDF file signed and .p7s file. I need retrieve .p7s from PDF and co-sign the PDF (generating other .p7s). After I need put again the p7s into PDF file. I get this error when I try get p7s from PDF: ExceptionConverter: java.security.SignatureException: object not initialized for signing My code: BouncyCastleProvider provider = new BouncyCastleProvider(); Security.addProvider(provider); PdfReader pdfReader = new PdfReader(Files.readAllBytes(inputFile.toPath())); AcroFields acroFields =

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 do i add additional information to Certificate Service Request (CSR)?

一个人想着一个人 提交于 2020-01-02 08:32:50
问题 I'm using OpenSSL to generate a Certificate Service Request (CSR). The standard fields are: Common Name: John Doe Organization: MyCompany Inc. Organization Unit: Sales Locality: SF State: CA Country: US Email: john.doe@mycompany.com However I want to add my own fields to the certificate such as: GroupId: 348348923 EmployeeLevel: Class 3 What is the proper way to do this before I request the Certificate Authority (CA) sign the CSR? 回答1: All the fields you're describing are subject items in an

How do i add additional information to Certificate Service Request (CSR)?

大兔子大兔子 提交于 2020-01-02 08:32:11
问题 I'm using OpenSSL to generate a Certificate Service Request (CSR). The standard fields are: Common Name: John Doe Organization: MyCompany Inc. Organization Unit: Sales Locality: SF State: CA Country: US Email: john.doe@mycompany.com However I want to add my own fields to the certificate such as: GroupId: 348348923 EmployeeLevel: Class 3 What is the proper way to do this before I request the Certificate Authority (CA) sign the CSR? 回答1: All the fields you're describing are subject items in an