This page will help you to check your OpenSSL setup and to generate a private and public key pair.
The public and private keys are generated on the fly each time the page is loaded.
| Requirement | Value / Description |
|---|---|
| PHP_VERSION | " . (version_compare(PHP_VERSION, '4.2.0', '>=')? '>=4.2.0' : '<4.2.0') . ' |
| openssl | " . ((extension_loaded('openssl'))? 'extension loaded' : 'extension not loaded') . ' |
| openssl_pkey_get_details | " . ((function_exists('openssl_pkey_get_details'))? 'exists' : 'doesn\'t exist') . ' |
| Private key | " . (($privateKey!='')? 'Found' : 'Not found') . ' |
| Public key | " . (($publicKey!='')? 'Found' : 'Not found') . ' |
| OpenSSL Library | " . ((isset($versions['Library']))? $versions['Library'] : 'Not found') . ' |
| OpenSSL Header | " . ((isset($versions['Header']))? $versions['Header'] : 'Not found') . ' |
| CRYPT_RSA_MODE | " . ((CRYPT_RSA_MODE==1)? 'MODE_INTERNAL' : 'MODE_OPENSSL') . ' |
| Decrypted message | " . $rsa->decrypt($ciphertext) . ' |
| Decryption speed (fallback) | " . $time . ' |
| Decrypted message | " . $message . ' |
| Decryption speed (native) | " . $time . ' |
This section will help you to create assets/keys/private.pem and assets/keys/public.pem files.
Beware that it is a pair of keys that must be set together (i.e. you must update the both files at the same time with the corresponding content).
You can copy/paste the content below into assets/keys/private.pem.
You can copy/paste the content below into assets/keys/public.pem.