sign

how can realize openssl pkeyutl -sign by java

放肆的年华 提交于 2021-01-28 21:06:53
问题 the command line is openssl pkeyutl -sign -inkey pkcs1.pem -pkeyopt digest:sha1 -in testlog I want to realize it by java. But NONEwithRSA or SHA1withRSA neither give the same output. the NONEwithRSA's output is the same with openssl pkeyutl -sign -inkey pkcs1.pem -in testlog which has no -pkeyopt digest:sha1 the java code just like Signature sign = Signature.getInstance(algorithm); sign.initSign(privatekey); sign.update(keyByte); return sign.sign(); I don't know how to amend this. thank's

How to sign and verify the file in JAVA

不问归期 提交于 2021-01-28 07:08:26
问题 I have to place a file in remote SFTP server before that I have to sign the file with the private key and they will verify it with the public key. I am getting "PGP Signature verification failed" error from the response file. So I tried to verify the sign from JAVA. Still, I am getting false value from the signature verify method. Any help would be appreciated. Here's a code that I've put together. public class SignAndVerify { static final KeyFingerPrintCalculator FP_CALC = new

How can I sign my app with “APK Signature Scheme v3”?

早过忘川 提交于 2021-01-07 03:10:48
问题 Here in the docs, there is the explanation about signature v3 : https://source.android.com/security/apksigning/v3 But when I try to sign my app in android studio using Build>Generate signed apk/bundle, I can just check checkboxes for v1(jar signature) and v2(full apk signature) and there is no option for v3 signature. How can I sign my App using signature scheme v3? Thank you. 回答1: As @Pierre said, the Android studio is not supporting to create v3 scheme verified releask apk. To do that we

Digitally signing a PDF, using PHP, Zend, and openssl

て烟熏妆下的殇ゞ 提交于 2020-11-30 06:45:01
问题 I'm trying to build a simple PDF document signing routine, using PHP, openssl, and the Zend framework (for pdf redering/handling). I've found this, but it simply won't work, Zend is not able to open any pdf's, not even Zend's own test pdf and Zend will not report why, only that it 'cannot'. I'm pretty sure I would be able to create the keys/certs effectively as that is well documented, but is there a solid approach to attaching the generated certificate to the PDF as the above Zend extension

Digitally signing a PDF, using PHP, Zend, and openssl

≡放荡痞女 提交于 2020-11-30 06:43:30
问题 I'm trying to build a simple PDF document signing routine, using PHP, openssl, and the Zend framework (for pdf redering/handling). I've found this, but it simply won't work, Zend is not able to open any pdf's, not even Zend's own test pdf and Zend will not report why, only that it 'cannot'. I'm pretty sure I would be able to create the keys/certs effectively as that is well documented, but is there a solid approach to attaching the generated certificate to the PDF as the above Zend extension

Digital PDF Document Signing

穿精又带淫゛_ 提交于 2020-11-24 22:57:09
问题 Update 2: I have uploaded sample at https://1drv.ms/u/s!Al69FgQ8jwmZbgiBMXLLM4j5sbU?e=vyGF4m Can you please check. I am stuck at last step. However, please confirm if other appraoch is correct. Update 1: I have confirmed the flow. So I am clear on it. As part of that digital signing PDF document flow , We want to use third party to provide Signed Hash of PDF. Here are steps: There is 3rd party inhouse system which will generate PDF document from word. That PDF will be send to another service

Signing .exe with .cer file (what is my certificate's name that signtool.exe is asking for?)

♀尐吖头ヾ 提交于 2020-08-22 11:57:34
问题 I have bought a certificate for my program. The website from which I bought it, sent me an .cer file ( 43-some-really-long-name-9962812767788.cer ). No additional files were sent, but I'm almost 100% sure that I don't need anything more. When I click on that .cer file, there are information like: for: (my data) by: Certum Code Signing CA expires: 2014-10-24 All that info seems to be fine. I have my .exe file, that I want to sign with it (so when e.g. user will run it as administrator on

Signing .exe with .cer file (what is my certificate's name that signtool.exe is asking for?)

拟墨画扇 提交于 2020-08-22 11:56:29
问题 I have bought a certificate for my program. The website from which I bought it, sent me an .cer file ( 43-some-really-long-name-9962812767788.cer ). No additional files were sent, but I'm almost 100% sure that I don't need anything more. When I click on that .cer file, there are information like: for: (my data) by: Certum Code Signing CA expires: 2014-10-24 All that info seems to be fine. I have my .exe file, that I want to sign with it (so when e.g. user will run it as administrator on

Signing .exe with .cer file (what is my certificate's name that signtool.exe is asking for?)

こ雲淡風輕ζ 提交于 2020-08-22 11:56:12
问题 I have bought a certificate for my program. The website from which I bought it, sent me an .cer file ( 43-some-really-long-name-9962812767788.cer ). No additional files were sent, but I'm almost 100% sure that I don't need anything more. When I click on that .cer file, there are information like: for: (my data) by: Certum Code Signing CA expires: 2014-10-24 All that info seems to be fine. I have my .exe file, that I want to sign with it (so when e.g. user will run it as administrator on