8#include <botan/x509self.h>
10#include <botan/internal/parsing.h>
71 auto now = std::chrono::system_clock::now();
74 end =
X509_Time(now + std::chrono::seconds(expiration_time));
76 if(initial_opts.empty()) {
80 std::vector<std::string> parsed =
split_on(initial_opts,
'/');
82 if(parsed.size() > 4) {
89 if(parsed.size() >= 2) {
92 if(parsed.size() >= 3) {
95 if(parsed.size() == 4) {
static OID from_string(std::string_view str)
std::vector< OID > ex_constraints
Key_Constraints constraints
void add_constraints(Key_Constraints constr)
void not_before(std::string_view time)
void not_after(std::string_view time)
void add_ex_constraint(const OID &oid)
void set_padding_scheme(std::string_view scheme)
void CA_key(size_t limit=1)
X509_Cert_Options(std::string_view opts="", uint32_t expire_time=365 *24 *60 *60)
std::string padding_scheme
std::vector< std::string > split_on(std::string_view str, char delim)