SSLCertificate.cn's API and WHMCS Module Released

Posted On // Leave a Comment

Hi,


This is xoxoTeam( sslcertificate@163.com ), as you know, we are selling cheap wildcard ssl validation as long as 5 years, and sold 1024 ssl at 10/24/2014.


We are here to announce our API and WHMCS Reseller Module are ready!


WHMCS Module: http://ift.tt/1streuQ


usage (If your whmcs directory path is /home/xoxo/whmcs/ ):



mkdir /tmp/ssl_whmcs/

cd /tmp/ssl_whmcs/

git init

git remote add origin git@github.com:xoxossl/sslcertificate_whmcs_module.git

git pull origin master

vim modules/gateways/callback/sslcertificate_cn_callback.php

#edit the line 2 and line 3 to you appid and appkey

cp -r ./* /home/xoxo/whmcs/ #your whmcs path here

#after that, login to your whmcs admin dashboard to configure as http://ift.tt/1w9ESJ4 told.


API SDK: http://ift.tt/1streuU simple demo:



<?php

require_once 'ssl_sdk.php';

$csr = '-----BEGIN CERTIFICATE REQUEST-----

MIIC4zCCAcsCAQAwgZ0xHDAaBgNVBAMUEyouc3NsY2VydGlmaWNhdGUuY24xHDAa

BgNVBAoUEyouc3NsY2VydGlmaWNhdGUuY24xFjAUBgNVBAsTDVNlY3VyaXR5IGRl

cHQxJTAjBgkqhkiG9w0BCQEWFnNzbGNlcnRpZmljYXRlQDE2My5jb20xCzAJBgNV

BAYTAkNOMRMwEQYDVQQIEwpTb21lLVN0YXRlMIIBIjANBgkqhkiG9w0BAQEFAAOC

AQ8AMIIBCgKCAQEA5lPmofhDt1CQw7Rr0HffzudUUaHF8/5onCI/7aKPMKeaVQLJ

B5vv1V6qTRelqpywmbXTDPj1X5AjLqM2fzPAjt3vnMdEPjddyfSxCv1KEWxAytNP

lFDnCUsv0Z7gSZDPJYwleoBgxUFVvRgRs+DfkdafGqlQV2TiDtZsZlq2nLLz5UlO

wjwbmHS6OGCIOYbgcnokVVHHug9/gpDLeHo4ZyHJd9ZZK0SxrBKNtex94DpkP12P

xT83FVNEsnaXjlaR/c0TcGbiGQ3BiSUI1VBmQFL2KNuk6KyXxg2ot7EHQ1GnG5P6

+LR4zTjXySeZia13/Am2NwBRzyrbp0yp99nT5wIDAQABoAAwDQYJKoZIhvcNAQEE

BQADggEBAI4PApFve6GDigGoZtfecgEugoDi++A7/NjpULduR9ijsoiOSvMesF7Z

RtZQ8HQcwavi5apO5o1zPkZYJvbUQ6KYeL3rR1iIlobktSjVHboiQxOfDwMrVcMs

jBL+KXl+cqbgfQqAXDFRFmeRtyfpJ10HTCLXFWqNVTz8HTRLHyHwCM5wNAmQfGlQ

3tPGEdJTqAMXa8wMdgoxAQNO3Ru/MnM8nkG3GUWtal1q1q2aWodPP3xTGWA94DRJ

WVnToJKY7ZdzapvSMeJxevxoeeIqmfR5chIkfvRIj/ZcHZoe+fpZvdgvEV3bJbsp

5QQVXwnJVWXI6CxyJUHebB8pwyDGBi8=

-----END CERTIFICATE REQUEST-----';

$domain = '*.sslcertificate.cn';

$order_id = 10000; // this is your order id...

$callback = 'http://ift.tt/1streuX';

$ssl = new SSLCertificate( 'dev', '234354365', 'sandbox' );

// 'sandbox' for test

// if null/not-set or other will be production mode

$do = $ssl->nonce( $order_id )

->domain( $domain )

->csr( $csr )

->callback( $callback )

->submitCSR();

if( $do ){

// if success... transaction

}else{

// if error... trace...

}


and by the way, any client have interests, please contact sslcertificate@163.com


http://ift.tt/1dvHQ0Z

0 comments:

Post a Comment