8 #ifndef BOTAN_X509_SELF_H__
9 #define BOTAN_X509_SELF_H__
11 #include <botan/x509cert.h>
12 #include <botan/x509_ext.h>
13 #include <botan/pkcs10.h>
14 #include <botan/asn1_time.h>
127 void CA_key(
size_t limit = 1);
133 void not_before(
const std::string& time);
139 void not_after(
const std::string& time);
151 void add_ex_constraint(
const OID& oid);
157 void add_ex_constraint(
const std::string& name);
166 uint32_t expire_time = 365 * 24 * 60 * 60);
183 const std::string& hash_fn,
196 const std::string& hash_fn,
PKCS10_Request create_cert_req(const X509_Cert_Options &opts, const Private_Key &key, const std::string &hash_fn, RandomNumberGenerator &rng)
Key_Constraints constraints
std::string serial_number
std::vector< OID > ex_constraints
X509_Certificate create_self_signed_cert(const X509_Cert_Options &opts, const Private_Key &key, const std::string &hash_fn, RandomNumberGenerator &rng)