迎此举国之庆,特送5枚商业泛域名SSL证书,免费哦!
规则:
<?php
public class ssl{
var $xoxo = null;
var $type = null;
function __construct(){
$this->xoxo = 5;
$this->type = "wildcard";
}
function _rsa_private_key_new( $length = 2048 ){
return rsa_key_generate( $length );
}
function _csr_new( $domain ){
if( !preg_match( '/^*\./', $domain ) return false;
return csr_generate( $this->_rsa_private_key_new( ), $domain );
}
function play(){
if( $this->xoxo < 1 ) return false;
$this->xoxo --;
try{
set_mark( Your qq's last four number );
contact_qq( 1326570297 );
send( $this->_csr_new( '*.v2ex.com', function( $data ){
return $data['crt'];
} );
}catch( Exception $e){
return sorry();
}
}