digital-signature

JWT public key vs private key signature validation — what is the difference?

你。 提交于 2019-12-11 06:44:57
问题 I am using this library, node-jwks-rsa, to fetch JWT keys from my auth0 jwks.json file in order to verify that the id_token my application retrieves after authentication is actually coming from my auth provider. Under the hood it uses this method to build a public key PEM export function certToPEM(cert) { cert = cert.match(/.{1,64}/g).join('\n'); cert = `-----BEGIN CERTIFICATE-----\n${cert}\n-----END CERTIFICATE-----\n`; return cert; } (Using the x50c as argument from the .jwks file). which I

Is it possible to sign a Excel VBA project including timestamp?

亡梦爱人 提交于 2019-12-11 05:09:54
问题 I sign VBA code in Excel files automatically with digital signature, which works well using X509Certificate2 and EPPlus. Now I want to include a timestamp, any idea where i could set this? If I sign the code manually in VBA Editor - Tools - Digital Signature, the code is well signed with timestamp (and countersignature). So it remains valid when the cert of the signing person has expired. But when signing with EPPlus is doesn't. In ExcelVBASignature.cs it looks as this function would be

add Digital Signature using mPDF object

[亡魂溺海] 提交于 2019-12-11 04:49:22
问题 I'm using mPDF to create a PDF. I want to digitally add a signature to the PDF document. I can only find online examples for adding a digital signature to a tcPDF object, not an mPDF. Does anyone have any information on the subject that can help me? This is my PHP code: $pdf=new mPDF('en','A4','','DejaVuSansCondensed',$template->margin_left,$template->margin_right,$template->margin_top,$template->margin_bottom,$template->margin_header,$template->margin_footer); $pdf->setAutoFont(); $pdf-

Signing a json document or string with x509 certificate

℡╲_俬逩灬. 提交于 2019-12-11 03:52:50
问题 How to signing a json document or string with x509 certificate? public static void fund() { string filePath = @"C:\Users\VIKAS\Desktop\Data.xml"; //Read the file XmlDocument xmlDoc = new XmlDocument(); XElement ele = XElement.Load(filePath); String Xml = ele.ToString(); xmlDoc.LoadXml(Xml); string signature = SignedXMLCert(xmlDoc); bool verified = ValidateSignature(signature); } public static string SignedXMLCert(XmlDocument xmlDoc) { string startupPath = AppDomain.CurrentDomain.BaseDirectory

PKCS1_PSS sign() method

≯℡__Kan透↙ 提交于 2019-12-11 03:33:46
问题 I have been trying to fix an issue but failed countless times. I need to use a method, sign(), and I have the correct library imported, however its still not being recognized. I'm coding in Python and this is what I have that seems important: #importing the library from Crypto.Signature import PKCS1_PSS [...] signer = PKCS1_PSS.new(keypair) sig = PKCS1_PSS.sign(keypair) But the sign() method is the only thing in the entire code from that library that doesn't get recognized: "This inspection

How to save digital signature of received mail

拟墨画扇 提交于 2019-12-11 03:07:31
问题 I am trying to save the digital signature of the currently opened mail item. Now I realize that Outlook prevents access to encrypt/sign a new email programmatically. Here I am focused on messages which have been received. So far, I am just able to use the MessageClass property to detect a signed email. Function GetCurrentItem() As Object Dim objApp As Outlook.Application Set objApp = CreateObject("Outlook.Application") On Error Resume Next Select Case TypeName(objApp.ActiveWindow) Case

Digitally sign a hash value of a file directly instead of file

不想你离开。 提交于 2019-12-11 02:12:27
问题 My ques is -- Is it possible to digitally sign a hash value of a file directly instead of file. I have to digitally sign a xml file in web environment through e-token. So I have to download the file from server to client and then get certificate from e-token usb at client machine and sign the file and upload it on server. But the problem is, if size of the file is too huge, then it will take too much time to download at client side (depend upon internet speed) and some leakage in the security

Digital Signatures of XML, PDF and Office Documents on every platform

南笙酒味 提交于 2019-12-11 02:08:25
问题 I'm trying to develop a website that performs digital signatures on client-side and then sent the signed document to the server-side. I want to do the signatures on client, due to the fact of not sending away the user's private key. This key (in theory) must be always with the user and it must not be sent to the web (even if protected with SSL, for example). I want that every platform may be able to sign the documents. I've already developed a Java Applet with the signing algorithms, but Java

PDF document is modified by another revision?

南楼画角 提交于 2019-12-11 01:52:11
问题 I use PDFbox in order to sign PDF. It works very well. I can add several signature to one document, and everything works well. Now, someone sign me a document(she sign by another software), this signature was working too. but when I add another revision (by pdfbox) to his document now Adobe reader tells me that PDF was modified. that is original document: this this is signed document which was done by another software: link when I add another revision to the signed pdf, I get this document,

Docusign: Getting an embedded recipient view without having templateID

偶尔善良 提交于 2019-12-11 01:35:34
问题 I have scenario where I need users coming on a web site to upload a document and another user has to sign this document. What I have done till now: Step1: Login through email,password and Integratorkey function(next) { var url = "https://demo.docusign.net/restapi/v2/login_information"; var body = ""; // no request body for login api call // set request url, method, body, and headers var options = initializeRequest(url, "GET", body, email, password); // send the request... request(options,