Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_x509.h File Reference

X.509 helpers: self-signed CA generation and per-host leaf minting. More...

#include "nilorea/n_str.h"
+ Include dependency graph for n_x509.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int n_x509_generate_ca (const char *cn, int days, N_STR **ca_cert_pem, N_STR **ca_key_pem)
 Generate a self-signed certificate authority (CA) keypair and cert.
 
int n_x509_keypair_pem (int bits, N_STR **key_pem)
 Generate an RSA private key and return it as a PEM string.
 
int n_x509_mint_host_cert (const char *host, const N_STR *ca_cert_pem, const N_STR *ca_key_pem, int days, N_STR **leaf_cert_pem, N_STR **leaf_key_pem)
 Mint a per-host leaf certificate signed by the given CA.
 

Detailed Description

X.509 helpers: self-signed CA generation and per-host leaf minting.

Author
Castagnier Mickael
Version
1.0

Definition in file n_x509.h.