ne_ssl_cert_signedby man page on aLinux

Man page or keyword search:  
man Server   7435 pages
apropos Keyword Search (all sections)
Output format
aLinux logo
[printable version]

NE_SSL_CERT_IDENTI(3)	      neon API reference	 NE_SSL_CERT_IDENTI(3)

NAME
       ne_ssl_cert_identity,	 ne_ssl_cert_signedby,	   ne_ssl_cert_issuer,
       ne_ssl_cert_subject - functions to access certificate properties

SYNOPSIS
       #include <ne_ssl.h>

       const char *ne_ssl_cert_identity (const ne_ssl_certificate *cert);

       const ne_ssl_certificate *ne_ssl_cert_signedby (const ne_ssl_certificate *cert);

       const ne_ssl_dname *ne_ssl_cert_subject (const ne_ssl_certificate *cert);

       const ne_ssl_dname *ne_ssl_cert_issuer (const ne_ssl_certificate *cert);

DESCRIPTION
       The  function ne_ssl_cert_identity retrieves the ``identity'' of a cer‐
       tificate; for an SSL server certificate, this will be the hostname  for
       which  the certificate was issued. In PKI parlance, the identity is the
       common name attribute of the distinguished name of the certificate sub‐
       ject.

       The functions ne_ssl_cert_subject and ne_ssl_cert_issuer can be used to
       access the objects representing the distinguished name of  the  subject
       and of the issuer of a certificate, respectively.

       If   a  certificate  object  is	part  of  a  certificate  chain,  then
       ne_ssl_cert_signedby can be used to find the certificate which signed a
       particular  certificate. For a self-signed certificate or a certificate
       for which the full chain is not available, this	function  will	return
       NULL.

RETURN VALUE
       ne_ssl_cert_issuer  and ne_ssl_cert_subject are guaranteed to never re‐
       turn NULL. ne_ssl_cert_identity may return NULL if the certificate  has
       no  specific ``identity''. ne_ssl_cert_signedby may return NULL as cov‐
       ered above.

EXAMPLES
       The following function could be used to	display	 information  about  a
       given certificate:

       void dump_cert(const ne_ssl_certificate *cert) {
	 const char *id = ne_ssl_cert_identity(cert);
	 char *dn;

	 if (id)
	   printf("Certificate was issued for '%s'.\n", id);

	 dn = ne_ssl_readable_dname(ne_ssl_cert_subject(cert));
	 printf("Subject: %s\n", dn);
	 free(dn);

	 dn = ne_ssl_readable_dname(ne_ssl_cert_issuer(cert));
	 printf("Issuer: %s\n", dn);
	 free(dn);
       }

SEE ALSO
       ne_ssl_cert_cmp(3), ne_ssl_readable_dname(3)

AUTHOR
       Joe Orton <neon@webdav.org>.

neon 0.25.5			20 January 2006		 NE_SSL_CERT_IDENTI(3)
[top]

List of man pages available for aLinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net