11590Srgrimes=pod 21590Srgrimes 31590Srgrimes=head1 NAME 41590Srgrimes 51590Srgrimesx509 - X.509 certificate handling 61590Srgrimes 71590Srgrimes=head1 SYNOPSIS 81590Srgrimes 91590Srgrimes #include <openssl/x509.h> 101590Srgrimes 111590Srgrimes=head1 DESCRIPTION 121590Srgrimes 131590SrgrimesA X.509 certificate is a structured grouping of information about 141590Srgrimesan individual, a device, or anything one can imagine. A X.509 CRL 151590Srgrimes(certificate revocation list) is a tool to help determine if a 161590Srgrimescertificate is still valid. The exact definition of those can be 171590Srgrimesfound in the X.509 document from ITU-T, or in RFC3280 from PKIX. 181590SrgrimesIn OpenSSL, the type X509 is used to express such a certificate, and 191590Srgrimesthe type X509_CRL is used to express a CRL. 201590Srgrimes 211590SrgrimesA related structure is a certificate request, defined in PKCS#10 from 221590SrgrimesRSA Security, Inc, also reflected in RFC2896. In OpenSSL, the type 231590SrgrimesX509_REQ is used to express such a certificate request. 241590Srgrimes 251590SrgrimesTo handle some complex parts of a certificate, there are the types 261590SrgrimesX509_NAME (to express a certificate name), X509_ATTRIBUTE (to express 271590Srgrimesa certificate attributes), X509_EXTENSION (to express a certificate 281590Srgrimesextension) and a few more. 291590Srgrimes 301590SrgrimesFinally, there's the supertype X509_INFO, which can contain a CRL, a 311590Srgrimescertificate and a corresponding private key. 321590Srgrimes 331590SrgrimesB<X509_>I<...>, B<d2i_X509_>I<...> and B<i2d_X509_>I<...> handle X.509 341590Srgrimescertificates, with some exceptions, shown below. 351590Srgrimes 361590SrgrimesB<X509_CRL_>I<...>, B<d2i_X509_CRL_>I<...> and B<i2d_X509_CRL_>I<...> 3758407Sgreenhandle X.509 CRLs. 3858307Sgreen 391590SrgrimesB<X509_REQ_>I<...>, B<d2i_X509_REQ_>I<...> and B<i2d_X509_REQ_>I<...> 401590Srgrimeshandle PKCS#10 certificate requests. 411590Srgrimes 421590SrgrimesB<X509_NAME_>I<...> handle certificate names. 431590Srgrimes 441590SrgrimesB<X509_ATTRIBUTE_>I<...> handle certificate attributes. 451590Srgrimes 461590SrgrimesB<X509_EXTENSION_>I<...> handle certificate extensions. 471590Srgrimes 481590Srgrimes=head1 SEE ALSO 4987766Smarkm 5058407SgreenL<X509_NAME_ENTRY_get_object(3)|X509_NAME_ENTRY_get_object(3)>, 511590SrgrimesL<X509_NAME_add_entry_by_txt(3)|X509_NAME_add_entry_by_txt(3)>, 5292922SimpL<X509_NAME_add_entry_by_NID(3)|X509_NAME_add_entry_by_NID(3)>, 5392922SimpL<X509_NAME_print_ex(3)|X509_NAME_print_ex(3)>, 5492922SimpL<X509_NAME_new(3)|X509_NAME_new(3)>, 5592922SimpL<d2i_X509(3)|d2i_X509(3)>, 5692922SimpL<d2i_X509_ALGOR(3)|d2i_X509_ALGOR(3)>, 5792922SimpL<d2i_X509_CRL(3)|d2i_X509_CRL(3)>, 5892922SimpL<d2i_X509_NAME(3)|d2i_X509_NAME(3)>, 59L<d2i_X509_REQ(3)|d2i_X509_REQ(3)>, 60L<d2i_X509_SIG(3)|d2i_X509_SIG(3)>, 61L<crypto(3)|crypto(3)>, 62L<x509v3(3)|x509v3(3)> 63 64=cut 65