certifier_api_easy_set_opt(easy, CERTIFIER_OPT_CFG_FILENAME, cfgFilePath); certifier_api_easy_set_opt(easy, CERTIFIER_OPT_CA_INFO, cacertFilePath); certifier_api_easy_set_opt(easy, CERTIFIER_OPT_KEYSTORE, p12FilePath); certifier_api_easy_set_opt(easy, CERTIFIER_OPT_PASSWORD, keystore_password);
int rc; certifier_api_easy_set_opt(easy, CERTIFIER_OPT_CRT_TYPE, "TEST"); certifier_api_easy_set_mode(easy, CERTIFIER_MODE_CREATE_CRT); certifier_api_easy_set_opt(easy, CERTIFIER_OPT_AUTH_TOKEN, token); rc = certifier_api_easy_perform(easy); char * crt = (char *) certifier_api_easy_get_result(easy);
certifier_api_easy_set_mode(easy, CERTIFIER_MODE_RENEW_CERT); certifier_api_easy_set_opt(easy, CERTIFIER_OPT_CRT, crt); rc = certifier_api_easy_perform(easy);