digital-signature

How does a public key verify a signature?

陌路散爱 提交于 2019-12-29 10:04:57
问题 I am trying to get a better grapple on how public/private keys work. I understand that a sender may add a digital signature to a document using his/her private key to essentially obtain a hash of the document, but what I do not understand is how the public key can be used to verify that signature. My understanding was that public keys encrypt, private keys decrypt... can anyone help me understand? 回答1: Your understanding of "public keys encrypt, private keys decrypt" is correct... for data

Access installed certified to sign

时间秒杀一切 提交于 2019-12-29 09:13:18
问题 I am trying to sign an Object in a Java + JSF project. What I have done so far is create my own X509 certificate as well as a CA with XCA and install both of them on Firefox and Chrome. I have been searching for 3 days how could I access it to sign (the typical pop-up asking for select a certificate in case you have more than one installed) but I just cannot find something useful. I have seen multiple times this code line: X509Certificate[] certs = (X509Certificate[]) request.getAttribute(

Access installed certified to sign

☆樱花仙子☆ 提交于 2019-12-29 09:13:05
问题 I am trying to sign an Object in a Java + JSF project. What I have done so far is create my own X509 certificate as well as a CA with XCA and install both of them on Firefox and Chrome. I have been searching for 3 days how could I access it to sign (the typical pop-up asking for select a certificate in case you have more than one installed) but I just cannot find something useful. I have seen multiple times this code line: X509Certificate[] certs = (X509Certificate[]) request.getAttribute(

Do we need a security signature for the web service response?

女生的网名这么多〃 提交于 2019-12-28 19:19:32
问题 I have created a web service API and it's architecture is such that the server requires a client to sign the request along with a secret key assigned to it (signature is always different between multiple requests). Server matches the client's signature with its own computed signature. If they are a match then the server returns the response. I am wondering if a client should check the response coming back from the server to see if it's from the same application to which the request was made.

Signing data with private key in c#

匆匆过客 提交于 2019-12-28 03:04:07
问题 I need to sign some data with one private key using Algorithm SHA1RSA ,Rsa Key length 2048 with 64 base encoding.My code is like this string sPayload = ""; HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("URI"); httpWebRequest.ContentType = "application/json; charset=utf-8"; httpWebRequest.Method = WebRequestMethods.Http.Post; using (StreamWriter streamWriter = new StreamWriter(httpWebRequest.GetRequestStream())) { sPayload = "{\"id\":\"14123213213\"," + "\"uid\":\"teller\",

Digitally sign PDF files [closed]

点点圈 提交于 2019-12-27 11:56:05
问题 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 . I have a digital certificate that identifies an user. I need to use it to Digitally sign pdf files. Does anyone have an example that

Error “Malformed content.” in Signature Verification

爷,独闯天下 提交于 2019-12-25 18:26:21
问题 I want to verify my signature . my signature is a byte array. I use spongy castle I get error "org.spongycastle.cms.CMSException: Malformed content." this is my code: String base64 = Base64.toBase64String(signedchallenge); CMSSignedData cms = new CMSSignedData(Base64.decode(base64)); Store store = cms.getCertificates(); SignerInformationStore signers = cms.getSignerInfos(); Collection c = signers.getSigners(); I get error in line " CMSSignedData cms = new CMSSignedData(Base64.decode(base64));

Merging of pdf with digital signature with itext 5.4.0 or greatest gives error

血红的双手。 提交于 2019-12-25 18:22:11
问题 I have a big problem in trying to merge some pdf, created with itext, with digital signature. This is the code: ByteArrayOutputStream bos = new ByteArrayOutputStream(); Document document = new Document(); PdfCopy writer = new PdfCopy(document, bos); writer.setMergeFields(); document.addTitle(""); document.open(); PdfReader reader = null; for (int i = 0; i < iss.length; i++) { reader = new PdfReader(iss[i]); writer.addDocument(reader); reader.close(); } document.close(); bos.close(); On

Email signature table alignment issue at MAC email

孤人 提交于 2019-12-25 12:49:35
问题 I created this simple email signature with 3 tables as colspan might not working in email clients...From browser ..I SELECT ALL and COPY PASTE in signature part... Its working fine in outlook but in MAC Mail (Version 7.3)... Problem: Table 3 starting under table2.. while it should be starting from left .. under table 1... please have a look. <table style="width:200px;border:#999 1px solid;float:left" id="table1"> <tr> <td > <p style="line-height:30px; font-family:Arial; font-size:18px; color:

Email signature table alignment issue at MAC email

懵懂的女人 提交于 2019-12-25 12:47:09
问题 I created this simple email signature with 3 tables as colspan might not working in email clients...From browser ..I SELECT ALL and COPY PASTE in signature part... Its working fine in outlook but in MAC Mail (Version 7.3)... Problem: Table 3 starting under table2.. while it should be starting from left .. under table 1... please have a look. <table style="width:200px;border:#999 1px solid;float:left" id="table1"> <tr> <td > <p style="line-height:30px; font-family:Arial; font-size:18px; color: