8 #ifndef BOTAN_X509_SELF_H__
9 #define BOTAN_X509_SELF_H__
11 #include <botan/x509cert.h>
12 #include <botan/pkcs8.h>
13 #include <botan/pkcs10.h>
120 void sanity_check()
const;
126 void CA_key(
size_t limit = 1);
132 void not_before(
const std::string& time);
138 void not_after(
const std::string& time);
150 void add_ex_constraint(
const OID&
oid);
156 void add_ex_constraint(
const std::string& name);
165 u32bit expire_time = 365 * 24 * 60 * 60);
182 const std::string& hash_fn,
195 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)
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)