EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OID Certificate X.509

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#34440
Posted: 09/12/2015 11:17:37
by Miguel Andrade (Basic support level)
Joined: 09/12/2015
Posts: 2

Hello

Its possible show information OID of a digital certificate X.509 using ELDOS Library for Delphi?

Greetings
#34441
Posted: 09/12/2015 11:34:57
by Eugene Mayevski (EldoS Corp.)

OID is an abbreviation of "Object Identifier". Certificates themselves don't have any OIDs (though some properties or certificate fields have them). So it's not clear, what you are asking about. OIDs define a class of information: for example, there's an OID that identifies RDN's e-mail field or there's an OID associated with RSA algorithm as used in PKCS#1.

Certificates can be uniquely identified by the combination of IssuerRDN, SerialNumber properties and the hash of the key.


Sincerely yours
Eugene Mayevski
#34572
Posted: 09/29/2015 10:08:04
by Miguel Andrade (Basic support level)
Joined: 09/12/2015
Posts: 2

Hello

Like in this website:
http://www.javac.com.br/jc/posts/list/538-recuperando-informacoes-do-certificado-digital-cnpj-nome-do-responsavel-etc.page

I want extract this values:. 2.16.76.1.3.3, 2.16.76.1.3.4 and 2.16.76.1.3.7

Can you help with Eldos library?

| INFO: CNPJ...............: 2.16.76.1.3.3 - 99999999999999
| INFO: OID................: 2.16.76.1.3.4 - 2104197518181818100000000000000000000000000000
| INFO: OID................: 2.16.76.1.3.7 - 000000000000

INFO: --------------------------------------------------------
| INFO: Provider : SunJSSE
| INFO: Prov.Vers. : 1.6
| INFO: KS Type : pkcs12
| INFO: KS DefType : jks
| INFO: --------------------------------------------------------
| INFO: Alias exists : '11ca111a11111d11be1a1da111111af1_11a1adfd-1bb1-1e1f-a1a1-11101ad1111e'
| INFO: Version : '3'
| INFO: SerialNumber : '1919191919191919191'
| INFO: SigAlgName : 'SHA1withRSA'
| INFO: Válido de : '14/10/2010'
| INFO: Válido até : '14/10/2011'
| INFO: --------------------------------------------------------
| INFO: Nome do Responsavel: 2.16.76.1.3.2 - NOME DO RESPONSAVEL
| INFO: CNPJ...............: 2.16.76.1.3.3 - 99999999999999
| INFO: OID................: 2.16.76.1.3.4 - 2104197518181818100000000000000000000000000000
| INFO: OID................: 2.16.76.1.3.7 - 000000000000
| INFO: --------------------------------------------------------

Greetings
#34575
Posted: 09/29/2015 12:23:17
by Ken Ivanov (EldoS Corp.)

Hi Miguel,

As far as I understand Portuguese, what you need is access a particular type of extension in the certificate. SecureBlackbox does support certificate extensions so recovering the data you need shouldn't be an issue. However, in order to successfully extract the data from the extension you need to know the exact certificate extension OID and the format of that extension.

If you have an example of such certificate, you might wish to share it with us (via help desk, which is secure and private) and then we'd probably be able to suggest how to recover the identifiers you need from the certificate.

Ken
#34698
Posted: 10/09/2015 09:23:42
by Leonardo Herrera (Standard support level)
Joined: 02/14/2011
Posts: 66

Miguel,

Have a look at the CertDemo project, specifically in the ExtensionEncoder unit - you'll find a function named GetGeneralNames which may help you understand better how to get these values from a certificate.

Regards,
Leo
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

Topic viewed 3650 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!