Query: ne_ssl_load_default_ca
OS: redhat
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NE_SSL_LOAD_CA(3) neon API reference NE_SSL_LOAD_CA(3)NAMEne_ssl_load_ca, ne_ssl_load_default_ca - load SSL Certificate AuthoritiesSYNOPSIS#include <ne_session.h> int ne_ssl_load_ca (ne_session *session, const char *filename); int ne_ssl_load_default_ca (ne_session *session);DESCRIPTIONTo indicate that a given CA certificate is trusted by the user, the certificate can be loaded using the ne_ssl_load_ca function. The file- name parameter given must specify the location of a PEM-encoded CA certificate. The SSL library in use by neon may include a default set of CA certificates; calling the ne_ssl_load_default_ca function will indicate that these CAs are trusted by the user. If no CA certificates are loaded, or the server presents a certificate which is invalid in some way, then the certificate must be manually verified (see ne_ssl_set_verify(3)), otherwise the connection will fail.RETURN VALUEBoth ne_ssl_load_ca and ne_ssl_load_default_ca functions return 0 on success, or non-zero on failure.EXAMPLESLoad the CA certificate stored in /path/to/cacert.pem: ne_session *sess = ne_session_create(...); if (ne_ssl_load_ca(sess, "/path/to/cacert.pem")) { printf("Could not load CA cert: %s ", ne_get_error(sess)); }SEE ALSOne_get_error(3), ne_ssl_set_verify(3)AUTHORJoe Orton <neon@webdav.org>. neon 0.23.5 8 October 2002 NE_SSL_LOAD_CA(3)
Related Man Pages |
---|
ne_ssl_set_verify(3) - redhat |
ne_ssl_trust_cert(3) - opensolaris |
ne_ssl_trust_default_ca(3) - opensolaris |
ne_session_proxy(3) - redhat |
ne_ssl_trust_default_ca(3) - centos |
Similar Topics in the Unix Linux Community |
---|
Install neon-0.26.3. on a OpenBSD server |
Certificate Expiry Dates |
SSL Certificate Installation problem |