login about faq

Hello.

I'm using the component TChilkatCert to sign a text string:

cert := TChilkatCert.Create(Self);
success := cert.LoadByCommonName('ENTIDAD CAI SL - CIF B');
if (success <> 1) then
begin
  ShowMessage(cert.LastErrorText);
  Exit;
end;

//  Make sure this certificate has a private key available:

bHasPrivateKey := cert.HasPrivateKey();
if (bHasPrivateKey <> 1) then
begin
  ShowMessage('No private key available for signing.');
  Exit;
end;

//  Tell the encryption component to use this cert.
crypt.SetSigningCert(cert.ControlInterface As CHILKATCRYPT2Lib_TLB.IChilkatCert);

strData := Edit1.Text;

//  Indicate that the PKCS7 signature should be returned
//  as a base64 encoded string:
crypt.EncodingMode := 'base64';
strSignatureWithData := crypt.OpaqueSignStringENC(strData);

Which are the attributes that are signed? What values​​?

The OIDS are :

1.3.6.1.4.1.311.16.4

1.2.840.113549.1.9.15

1.2.840.113549.1.9.16.2.11

Thanks

This question is marked "community wiki".

asked May 30 '13 at 09:59

Jaime's gravatar image

Jaime
6123


All three are "authenticated attributes".

link

answered May 30 '13 at 13:51

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Hello.

Which are the values of these attributes? How I can read the values​​? How I can assign a specific value?

Thank you very much.

link

answered May 31 '13 at 06:22

Jaime's gravatar image

Jaime
6123

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4
×2
×1

Asked: May 30 '13 at 09:59

Seen: 726 times

Last updated: May 31 '13 at 06:22

powered by OSQA