Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton committed Jul 2, 2024
1 parent ab1fff3 commit a039dde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node/test/cert_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

#include "crypto/certs.h"

crypto::Pem make_self_signed_cert(crypto::KeyPairPtr kp)
ccf::crypto::Pem make_self_signed_cert(ccf::crypto::KeyPairPtr kp)
{
constexpr size_t certificate_validity_period_days = 365;
using namespace std::literals;
const auto valid_from =
ds::to_x509_time_string(std::chrono::system_clock::now() - 24h);
::ds::to_x509_time_string(std::chrono::system_clock::now() - 24h);

const auto valid_to = crypto::compute_cert_valid_to_string(
const auto valid_to = ccf::crypto::compute_cert_valid_to_string(
valid_from, certificate_validity_period_days);

return kp->self_sign("CN=Node", valid_from, valid_to);
Expand Down

0 comments on commit a039dde

Please sign in to comment.