DragonFly On-Line Manual Pages

Search: Section:  

X509_REQ_NEW(3)       DragonFly Library Functions Manual       X509_REQ_NEW(3)


X509_REQ_new, X509_REQ_free, X509_REQ_INFO_new, X509_REQ_INFO_free - PKCS#10 certification requests


#include <openssl/x509.h> X509_REQ * X509_REQ_new(void); void X509_REQ_free(X509_REQ *req); X509_REQ_INFO * X509_REQ_INFO_new(void); void X509_REQ_INFO_free(X509_REQ_INFO *req_info);


X509_REQ_new() allocates and initializes an empty X509_REQ object, representing an ASN.1 CertificationRequest structure defined in RFC 2986 section 4.2. It can hold a pointer to an X509_REQ_INFO object discussed below together with a cryptographic signature and information about the signature algorithm used. X509_REQ_free() frees req. If req is a NULL pointer, no action occurs. X509_REQ_INFO_new() allocates and initializes an empty X509_REQ_INFO object, representing an ASN.1 CertificationRequestInfo structure defined in RFC 2986 section 4.1. It is used inside the X509_REQ object and can hold the subject and the public key of the requested certificate and additional attributes. X509_REQ_INFO_free() frees req_info. If req_info is a NULL pointer, no action occurs.


X509_REQ_new() and X509_REQ_INFO_new() return the new X509_REQ or X509_REQ_INFO object, respectively, or NULL if an error occurs.


d2i_X509_REQ(3), PEM_read_X509_REQ(3), X509_new(3), X509_REQ_check_private_key(3), X509_REQ_digest(3), X509_REQ_get0_signature(3), X509_REQ_get_pubkey(3), X509_REQ_get_subject_name(3), X509_REQ_get_version(3), X509_REQ_sign(3)


RFC 2986: PKCS #10: Certification Request Syntax Specification


X509_REQ_new(), X509_REQ_free(), X509_REQ_INFO_new(), and X509_REQ_INFO_free() first appeared in SSLeay 0.4.4 and have been available since OpenBSD 2.4. DragonFly 6.1-DEVELOPMENT June 6, 2019 DragonFly 6.1-DEVELOPMENT

Search: Section: