mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-18 03:05:11 +00:00
Merge branch '2.0'
This commit is contained in:
commit
caa7eed299
@ -162,7 +162,7 @@ class RSA
|
|||||||
/**
|
/**
|
||||||
* Precomputed Zero
|
* Precomputed Zero
|
||||||
*
|
*
|
||||||
* @var array
|
* @var \phpseclib\Math\BigInteger
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
static $zero;
|
static $zero;
|
||||||
@ -170,7 +170,7 @@ class RSA
|
|||||||
/**
|
/**
|
||||||
* Precomputed One
|
* Precomputed One
|
||||||
*
|
*
|
||||||
* @var array
|
* @var \phpseclib\Math\BigInteger
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
static $one;
|
static $one;
|
||||||
|
@ -115,7 +115,7 @@ U9VQQSQzY1oZMVX8i1m5WUTLPz2yLJIBQVdXqhMCQBGoiuSoSjafUhV7i1cEGpb88h5NBYZzWXGZ
|
|||||||
37sJ5QsW+sJyoNde3xH8vdXhzU7eT82D6X/scw9RZz+/6rCJ4p0=
|
37sJ5QsW+sJyoNde3xH8vdXhzU7eT82D6X/scw9RZz+/6rCJ4p0=
|
||||||
-----END RSA PRIVATE KEY-----');
|
-----END RSA PRIVATE KEY-----');
|
||||||
$x509->setPrivateKey($rsa);
|
$x509->setPrivateKey($rsa);
|
||||||
$x509->setDN(array('cn' => 'ncgamers.org'));
|
$x509->setDN(array('cn' => 'website.com'));
|
||||||
$x509->saveCSR($x509->signCSR('sha256WithRSAEncryption'), X509::FORMAT_DER);
|
$x509->saveCSR($x509->signCSR('sha256WithRSAEncryption'), X509::FORMAT_DER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user