OpenBSD manual page server

Manual Page Search Parameters

X509_REQ_NEW(3) Library Functions Manual X509_REQ_NEW(3)

X509_REQ_new, X509_REQ_free, X509_REQ_INFO_new, X509_REQ_INFO_freePKCS#10 certification requests

#include <openssl/x509.h>

X509_REQ *

X509_REQ_free(X509_REQ *req);


X509_REQ_INFO_free(X509_REQ_INFO *req_info);

() 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. () frees req. If req is a NULL pointer, no action occurs.

() 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. () 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.

June 6, 2019 OpenBSD-6.9