<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("production");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
$api->order_extra_domains(array('order_id' => 9999, 'extra_domains_nr' => 1));
print_r($api->response);
Exemple #2
0
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Auth Error";
}
print_r($api->order_status(9999));
Exemple #3
0
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
/* CSR Email(optional):"*/
$ssl_generate["csr_email"] = "*****@*****.**";
/* CSR Domain:*/
$ssl_generate["csr_domain"] = "domain1.com";
/* CSR Department (optional):"*/
$ssl_generate["csr_department"] = "IT department";
/* Organization (ex.: Private Person)*/
$ssl_generate["csr_organization"] = "John LLC";
/* CSR City */
$ssl_generate["csr_city"] = "Portland";
/* CSR State*/
$ssl_generate["csr_state"] = "Oregon";
/* CSR Country Code (ex.: US, DE)*/
$ssl_generate["csr_country"] = "US";
/* CSR Additional Domains (San String) */
//$ssl_generate["csr_san_string"]="domain2.com,domain3.com";
$ssl_generate["dv_method"] = "dns";
// http, https, email or dns
$ssl_generate["order_id"] = "9999";
$ssl_generate["software_id"] = 3;
$ssl_generate["dv_method"] = "email=admin@domain1.com";
if ($api->reissue_ssl_order($ssl_generate)) {
    print_r($api->response);
} else {
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
if ($api->change_dv_method(array('order_id' => 9999, 'dv_method' => "https"))) {
    print_r($api->response);
} else {
    echo "error:" . $api->error_message;
}
Exemple #5
0
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
/* Admin_Firstname */
$ssl_generate["admin_firstname"] = "John";
/* Admin_Lastname */
$ssl_generate["admin_lastname"] = "Smith";
/* Admin_Phone:  */
$ssl_generate["admin_phone"] = "0042321313";
/* Admin Title: */
$ssl_generate["admin_title"] = "IT manager";
/* Admin Email:*/
$ssl_generate["admin_email"] = "*****@*****.**";
$ssl_generate["csr"] = "-----BEGIN CERTIFICATE REQUEST-----\nMIICyjCCAbICAQAwgYQxCzAJBgNVBAYTAkVTMQ8wDQYDVQQIDAZPcmVnb24xDzAN\nBgNVBAcMBk9yZWdvbjEMMAoGA1UECgwDb3JnMRMwEQYDVQQLDApkZXBhcnRtZW50\nMRMwEQYDVQQDDApteXNpdGUuY29tMRswGQYJKoZIhvcNAQkBFgx0ZXN0V0VAb2Uu\nbWQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC/h2rlCroHNgSY9e3U\nA49SWkijWxqlAnQUOIQn1EiWecHmJj1NNH0gM22222222222222222a4Gna/hDFU\nX1Ib1DHKf17ruquJKp71MM9XFdMM5iyyIvFRx5tuQhe+DkgvRnmZVtVMuS1/CzfV\n4W6sAKJfSkMLR7efZTrCubXL/iVWIYtf+K3JC0p42XUtAbseqL+qkzBL1Ncp8Yaa\ngRCIxqsgdrDo7kqn/HIg73cM+urTZkRowY+q+Tj63IrPD1rTqkLpbmvFa3vV0mU6\n+bCzAgMBAAGgADANBgkqhkiG9w0BAQsFAAOCAQEAMyGBxiX9TFgJTNIYrM9pTSfX\nUI8tNAuyXxjCU3tER8hexxwpTrq4PXoZhelD9YIwwH/f/4vAeuD9furyBwpGgVb3\neYgXyzk7YhMdn/8CEmlh4XwBBX5iYZrUqa11111111vZOyp7W7KQRZiUP0X0F0eA\nP7hVTWHWeUP0DXZ3v2bPlO2yL/JnfRF47W84EYoUR37LyoY8uej6cY47xZ4lAicT\nWh1ugSoskaN/0L7u03Lk3jDeut/1YGjQAp5ZKq1ppFWLabCYkI34ncbP2UtPqsql\nA+Xsn1+9MUVUFwnVQeU4Cy/OmyQc+gptFln6RxSUShPzzx5O2OGg1uiRllSSJA==\n-----END CERTIFICATE REQUEST-----";
$ssl_generate["period"] = 1;
//1,2 or 3 years
$ssl_generate["dv_method"] = "email:admin@mysite.com";
// http, https, email or dns
$ssl_generate["product_id"] = 17;
// ssl product id
$ssl_generate["software_id"] = 2;
// software_id
$ssl_generate["admin_title"] = 'IT Manager';
if ($api->add_ssl_order($ssl_generate)) {
    print_r($api->response);
} else {
    echo $api->error_message;
Exemple #6
0
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
print_r($api->list_products());
Exemple #7
0
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
print_r($api->get_balance());
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("production");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
print_r($api->get_ssl_product_details(3));
Exemple #9
0
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
$csr = "-----BEGIN CERTIFICATE REQUEST-----\nMIIC2DCCAcACAQAwgZIxCzAJBgNVBAYTAkJTMQ0wCwYDVQQIDAR05555550wCwYD\nVQQHDAR0ZXN0MRowGAYDVQQKDBF0ZXN0IG9yZ2FuaXphdGlvbjEPMA0GA1UECwwG\naXQgZGVwMREwDwYDVQQDDAh0ZXN0LmNvbTElMCMGCSqGSIb3DQEJARYWeDdpbmRp\nZ281NTE1QGdtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB\nAKfOw0C5YpcDQpe47vccbzyzIXu6pmg1+Nvltvnmwvubc/0O6vsPOo0Hl1k5t7Kp\nt5kSxvUIMJUDGToKrc+OX4WEHfcU4hiXubuPB4bL2/P3YTNTlli1N/qCzB5W8Tv1\nxpeDvg7w4bFpLga6Fj7HWoiXc4pVpi1ON35uucdeqrIxMDkPpaC6sFXB7ZeIOM2m\nqZGVKu5BQaF5AkuwjIxFzM39wVU9UtvGefuIAphZmpJe/34jzF7bUNjdc6q5Mnqp\nN4ycGvo35zkXXSbUwxih7BmQ04RmIeh2jnUSL1LWxnkkm7wFiT5waMHv8/DEfDMw\nZruXHQR+hOTTIwy/hZQ3i7ECAwEAAaAAMA0GCSqGSIb3DQEBBAUAA4IBAQBuNbDt\ndzpu5c3jISbGZBW8WJqHs0H7MLynq8ZwUfOAWVyxD19Gw+Do/roIbcy2Jsv+ytgZ\nPq2XAR3SXo4bv1o5bsqaZW3n3e8YeTT21GsbnEnm3Ylkd7T6oPftrJCy5MnA8zMG\nCbx7990qHaCi6REsDeVXrEjAPIMhiUw/vbf6k84Z3YGHh3tRFTkhTRcQqbvknWAt\nx2zao5lVXCnz86LKTHGTiM08fCqathCd67PcQI4I+mKdZevD/nzH16t8Y54OWA55\nN7zAjGX5TIBNMCGHgWXAFaaaaaaaaaaaaE2ajAymoJBoc8c12jgln2zUxgCQFrd7\nufZeSBIHI92N8u6x\n-----END CERTIFICATE REQUEST-----";
$api->validate_csr(array('csr' => $csr, 'product_id' => 6));
print_r($api->response);
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
$csr = "-----BEGIN CERTIFICATE REQUEST-----\nMIIC2DCCAcACAQAwgZIxCzAJBgNVBAYTAkJTMQ0wCwYDVQQIDAR0ZXN0MQ0wCwYD\nVQQHDAR0ZXN0MRowGAYDVQQKDBF0ZXN0IG9yZ2FuaXphdGlvbjEPMA0GA1UECwwG\naXQgZGVwMREwDwYDVQQDDAh0ZXN0LmNvbTElMCMGCSqGSIb3DQEJARYWeDdpbmRp\nZ281NTE1QGdtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB\nAKfOw0C5YpcDQpe47vccbzyzIXu6pmg1+Nvltvnmwvubc/0O6vsPOo0Hl1k5t7Kp\nt5kSxvUIMJUDGToKrc+OX4WEHfcU4hiXubuPB4bL2/P3YTNTlli1N/qCzB5W8Tv1\nxpeDvg7w4bFpLga6Fj7HWoiXc4pVpi1ON35uucdeqrIxMDkPpaC6sFXB7ZeIOM2m\nqZGVKu5BQaF5AkuwjIxFzM39wVU9UtvGefuIAphZmpJe/34j2222UNjdc6q5Mnqp\nN4ycGvo35zkXXSbUwxih7BmQ04RmIeh2jnUSL1LWxnkkm7w2222222IBAQBuNbDt\ndzpu5c3jISbGZBW8WJqHs0H7MLynq8ZwUfOAWVyxD19Gw+Do/roIbcy2Jsv+ytgZ\nPq2XAR3SXo4bv1o5bsqaZW3n3e8YeTT21GsbnEnm3Ylkd7T6oPftrJCy5MnA8zMG\nCbx7990qHaCi6REsDeVXrEjAPIMhiUw/vbf6k84Z3YGHh3tRFTkhTRcQqbvknWAt\nx2zao5lVXCnz86LKTHGTiM08fCqathCd67PcQI4I+mKdZevD/nzH16t8Y54OWA55\nN7zAjGX5TIBNMCGHgWXAF3t1xap6B1lsiE2222ymoJBoc8c12jgln2zUxgCQFrd7\nufZeSBIHI92N8u6x23333\n-----END CERTIFICATE REQUEST-----";
print_r($api->get_dv_options_csr(array('csr' => $csr, 'product_id' => 6, 'dv_method' => "http")));
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
$amount = $api->get_ssl_product_price(array('period' => 1, 'product_id' => 17));
echo "Amount:" . $amount;
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
print_r($api->get_ssl_web_soft());
Exemple #13
0
<?php

require_once "cyberssl_api.class.php";
$api = new CyberSSL_api("production");
//sandbox or production
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
if ($api->my_orders()) {
    print_r($api->response);
} else {
    echo "Error Message: " . $api->response_error_message . " Error Code: " . $api->response_error_code;
}
Exemple #14
0
<?php

require_once "../cyberssl_api.class.php";
$api = new CyberSSL_api("sandbox");
if (!$api->auth("your_api_key")) {
    echo "Authorize error";
}
print_r($api->get_dv_options(array('order_id' => 9999, 'dv_method' => "email")));
//all, http,https,email or dns