EldoS | Feel safer!

Software components for data protection, secure storage and transfer

ds:X509Certificate

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#9853
Posted: 04/29/2009 03:37:37
by dachi (Basic support level)
Joined: 04/16/2009
Posts: 3

Hello,

Let’s say I have Signature with KeyInfo, as below:

Code
  <ds:KeyInfo>
  <ds:KeyValue>
  <ds:RSAKeyValue>
  <ds:Modulus>h2Rt9qC+h5KNcLo2T03Sb9SMq+i4+HFTzJR7fkII3p9Npqkej8MzSxBMBwdLSK0K3alEET2CXLZ4B1HcoKr+LLYQsXqQJjWSvrlWOGZi/iYbeJMjjm7aukBMZNFZ5KRsQv+bg/qMfKtHtpeRaEVxAjiZdRxt1U1f+WIauF8fcdk=</ds:Modulus>
  <ds:Exponent>AQAB</ds:Exponent>
  </ds:RSAKeyValue>
  </ds:KeyValue>
  <ds:X509Data>
  <ds:X509IssuerSerial>
  <ds:X509IssuerName>C=PL, O=Sigillum Polskie Centrum Certyfikacji Elektronicznej, CN=Sigillum PCCE - kwalifikowany CA1, 2.5.4.5=Nr wpisu: 3</ds:X509IssuerName>
  <ds:X509SerialNumber>1142011386</ds:X509SerialNumber>
  </ds:X509IssuerSerial>
  <ds:X509SubjectName>2.5.4.16=0\"\0C\0Ful. Sanguszki 1\0C\0F00-222 Warszawa, 2.5.4.42=XXXXX, 2.5.4.4=XXXXX, 2.5.4.5=PESEL:XXXXXX, C=PL, ST=mazowieckie, L=Warszawa, O=Polska Wytw&#243;rnia Papier&#243;w Warto&#347;ciowych S.A., CN=XXXXX XXXXX</ds:X509SubjectName>
  <ds:X509Certificate>MIIFRDCCBCygAwIBAgIERBG1+jANB...MlHt+Qgjen02mqR6PwzNLEEwHB0tIrQrdqUQRPYJctngHUdygqv4sthCxepAmNZK+uVY4ZmL+Jht4kyOObtq6QExk0VnkpGxC/5uD+ox8q0e2l5FoRXECOJl1HG3VTV/5Yhq4Xx9x2QIDAQABo4IBwzCCAb8wDAYDVR0TAQH/BAIwADAbBgNVHREEFDASgRBrdGFwZXJla0Bwd3B3LnBsMIIBHQYDVR0gAQH/BIIBETCCAQ0wggEJBgsqhGgBhvcYCgEBADCB+TCBw...41I0+WpoWrG6yUj+X3nCKoGGoRUQNYOnbuuho/HHSyfx3nqkLd9PfLVy9oLSbO/CYZTVoSX0VPyOEUqayndZYwyZfTeMcuG2Mb9/Tn/pdnzy0Rr3uW5kHtd2TW1q0/0xdztm0ABMH3zCXoXVurh/ipgJgxb2bDsXuQhUmjOr87TUVhb+so1lqmU23JSZ4NBiJXzJy/By2mIVaPG3ox3RtvODsO+FW7kTmcHIln+kPaMYUfJ+D3ZJD+LGy6Z4MMK0qDmj1Bl7b5JoD7KZDJOdHQy/JXVEoBWBgH9OTIJGOtT4anPmYVz4pFVj0/UyrP+j2aAQVVQMjrTV5CFQ/s=</ds:X509Certificate>
  </ds:X509Data>
  </ds:KeyInfo>



I’d like to get out <ds:X509Certificate>, how can I do it?


Best regards,
Dachi
#9854
Posted: 04/29/2009 03:56:23
by Eugene Mayevski (EldoS Corp.)

You need to validate a signature, and after validating it you will get access to certificates or keys used for signing. See Processor sample in <SecureBlackbox>\Samples\...\XMLBlackbox folder for example.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 1780 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!