Skip to content
Snippets Groups Projects

Profile certificates

Merged Daniel Lyubomirov requested to merge profile-certificates into master
1 unresolved thread

Includes:

  • profile certificate generation and server sign.
  • storing the profile certificates in the local crypto storage.
  • one-time profile certificate generation.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
321 // set public key
322 auto r = X509_set_pubkey(cert.get(), const_cast<EVP_PKEY*>(pkey));
323 if (r != 1) {
324 throw OpenSSLError("set public key to certificate failed");
325 }
326
327 // set certificate version
328 r = X509_set_version(cert.get(), certVersion);
329 if (r != 1) {
330 throw OpenSSLError("set version to certificate failed");
331 }
332
333 // set serial number
334 auto serial_number = cert_data.SerialNumber;
335 if (serial_number == 0) {
336 // FIXME: is using time ok ?
  • added 1 commit

    • b9311b0b - Use crypto random generator for certificate serial numbers

    Compare with previous version

  • mentioned in commit a100f75d

  • Please register or sign in to reply
    Loading