OSSL_CRMF_MSG_SET0_VALIDITY - Online Linux Manual PageSection : 3ossl
Updated : 2022-03-15
Source : 3.0.2
Note : OpenSSL

NAMEOSSL_CRMF_MSG_set0_validity, OSSL_CRMF_MSG_set_certReqId, OSSL_CRMF_CERTTEMPLATE_fill, OSSL_CRMF_MSG_set0_extensions, OSSL_CRMF_MSG_push0_extension, OSSL_CRMF_MSG_create_popo, OSSL_CRMF_MSGS_verify_popo ​− functions populating and verifying CRMF CertReqMsg structures

SYNOPSIS​ #include <openssl/crmf.h> ​ ​ int OSSL_CRMF_MSG_set0_validity(OSSL_CRMF_MSG *crm, ​ ASN1_TIME *notBefore, ASN1_TIME *notAfter); ​ ​ int OSSL_CRMF_MSG_set_certReqId(OSSL_CRMF_MSG *crm, int rid); ​ ​ int OSSL_CRMF_CERTTEMPLATE_fill(OSSL_CRMF_CERTTEMPLATE *tmpl, ​ EVP_PKEY *pubkey, ​ const X509_NAME *subject, ​ const X509_NAME *issuer, ​ const ASN1_INTEGER *serial); ​ ​ int OSSL_CRMF_MSG_set0_extensions(OSSL_CRMF_MSG *crm, X509_EXTENSIONS *exts); ​ ​ int OSSL_CRMF_MSG_push0_extension(OSSL_CRMF_MSG *crm, X509_EXTENSION *ext); ​ ​ int OSSL_CRMF_MSG_create_popo(int meth, OSSL_CRMF_MSG *crm, ​ EVP_PKEY *pkey, const EVP_MD *digest, ​ OSSL_LIB_CTX *libctx, const char *propq); ​ ​ int OSSL_CRMF_MSGS_verify_popo(const OSSL_CRMF_MSGS *reqs, ​ int rid, int acceptRAVerified, ​ OSSL_LIB_CTX *libctx, const char *propq);

DESCRIPTIONOSSL_CRMF_MSG_set0_validity() sets the notBefore and notAfter fields as validity constraints in the certTemplate of crm. Any of the notBefore and notAfter parameters may be NULL, which means no constraint for the respective field. On success ownership of notBefore and notAfter is transferred to crm. OSSL_CRMF_MSG_set_certReqId() sets rid as the certReqId of crm. OSSL_CRMF_CERTTEMPLATE_fill() sets those fields of the certTemplate tmpl for which non-NULL values are provided: pubkey, subject, issuer, and/or serial. X.509 extensions may be set using OSSL_CRMF_MSG_set0_extensions(). On success the reference counter of the pubkey (if given) is incremented, while the subject, issuer, and serial structures (if given) are copied. OSSL_CRMF_MSG_set0_extensions() sets exts as the extensions in the certTemplate of crm. Frees any pre-existing ones and consumes exts. OSSL_CRMF_MSG_push0_extension() pushes the X509 extension ext to the extensions in the certTemplate of crm. Consumes ext. OSSL_CRMF_MSG_create_popo() creates and sets the Proof-of-Possession (POPO) according to the method meth in crm.< The library context libctx and property query string propq, may be NULL to select the defaults. In case the method is OSSL_CRMF_POPO_SIGNATURE the POPO is calculated using the private key pkey and the digest method digest. meth can be one of the following: • OSSL_CRMF_POPO_NONERFC 4211, section 4, POP field omitted. ​CA/RA uses out-of-band method to verify POP. Note that servers may fail in this case, resulting for instance in HTTP error code 500 (Internal error). • OSSL_CRMF_POPO_RAVERIFIEDRFC 4211, section 4, explicit indication that the RA has already verified the POP. • OSSL_CRMF_POPO_SIGNATURERFC 4211, section 4.1, only case 3 supported so far. • OSSL_CRMF_POPO_KEYENCRFC 4211, section 4.2, only indirect method (subsequentMessage/enccert) supported, challenge-response exchange (challengeResp) not yet supported. • OSSL_CRMF_POPO_KEYAGREERFC 4211, section 4.3, not yet supported. OSSL_CRMF_MSGS_verify_popo verifies the Proof-of-Possession of the request with the given rid in the list of reqs. Optionally accepts RAVerified. It can make use of the library context libctx and property query string propq.

RETURN VALUESAll functions return 1 on success, 0 on error.

SEE ALSORFC 4211

HISTORYThe OpenSSL CRMF support was added in OpenSSL 3.0.

COPYRIGHTCopyright 2007−2021 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the License). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
0
Johanes Gumabo
Data Size   :   14,503 byte
man-OSSL_CRMF_MSGS_verify_popo.3osslBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 183,677
Visitor ID   :     :  
Visitor IP   :   3.138.102.163   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|O___SSL_CRMF_CERTTEMPLATE_fill.3ossl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|O___SSL_CRMF_CERTTEMPLATE_fill.3ossl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|O___SSL_CRMF_CERTTEMPLATE_fill.3ossl|43|br══─}─══|'br══─}─══ )         (htmlprn|149|O___SSL_CRMF_CERTTEMPLATE_fill.3ossl|43|'br══─}─══ |'br══─}─══ )