myMPD
Internal API documentation
Loading...
Searching...
No Matches
cert.h File Reference

Certificate handling. More...

#include "dist/sds/sds.h"
#include <stdbool.h>
Include dependency graph for cert.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool certificates_check (sds workdir, sds ssl_san)
 
sds certificate_get_detail (sds cert_content)
 

Detailed Description

Certificate handling.

Function Documentation

◆ certificate_get_detail()

sds certificate_get_detail ( sds  cert_content)

Returns the certificate details

Parameters
cert_contentthe certificate as pem encoded sds
Returns
certificate details as newly allocated sds

◆ certificates_check()

bool certificates_check ( sds  workdir,
sds  ssl_san 
)

Public functions Creates the ssl directory, ca and cert and renews before expired

Parameters
workdirmyMPD working directory
ssl_sanAdditional subject alternative names
Returns
true on success else false