/*****************************************************************************/ /* certman.h VERSION HISTORY --------------- 23-APR-2017 MGD initial */ /*****************************************************************************/ #ifndef CERTMAN_H_LOADED #define CERTMAN_H_LOADED 1 #include #include #include #include #include #include #include /* days before expiry when renewal attempt begins */ #define CERTMAN_RENEW_DAYS 30 #define CERTMAN_API_ACMEV01 "https://acme-v01.api.letsencrypt.org/directory" #define CERTMAN_API_STAGING "https://acme-staging.api.letsencrypt.org/directory" #define EXIT_FI_LI(status) \ { printf ("Status:500\r\n\r\n[%s:%d]\r\n", FI_LI); exit(status); } /* function prototypes */ void CertManAdminCert (); char* CertManAltNames (X509*, char*); int CertManAppendPrivKey (char*); int CertManAsn1time (ASN1_TIME*, char*, int); char* CertManAuthorityApi (); void CertManBegin (); void CertManCLI (char*); int CertManCheck (char*, char**); int CertManCertify (char*); void CertManHouseKeeper (); int CertManInstall (char*); void CertManLoad (); #endif /* CERTMAN_H_LOADED */ /****************************************************************************/