"Fossies" - the Fresh Open Source Software Archive

Member "libressl-2.9.2/man/X509_REQ_new.3" (4 Dec 2018, 2725 Bytes) of package /linux/misc/libressl-2.9.2.tar.gz:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even errorneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

X509_REQ_NEW(3) BSD Library Functions Manual X509_REQ_NEW(3)

NAME

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

SYNOPSIS

#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);

DESCRIPTION

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.

RETURN VALUES

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.

SEE ALSO

d2i_X509_REQ(3), PEM_read_X509_REQ(3), X509_new(3), X509_REQ_get_pubkey(3), X509_REQ_get_subject_name(3), X509_REQ_get_version(3), X509_REQ_sign(3)

STANDARDS

RFC 2986: PKCS #10: Certification Request Syntax Specification

HISTORY

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.

BSD July 29, 2018 BSD