Download the PHP package jdmaymeow/php-encrypt without Composer
On this page you can find all versions of the php package jdmaymeow/php-encrypt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jdmaymeow/php-encrypt
More information about jdmaymeow/php-encrypt
Files in jdmaymeow/php-encrypt
Package php-encrypt
Short Description PHP Certification authority management script
License MIT
Informations about the package php-encrypt
PHP Encrypt
Certification authority management script
Installation
Prerequisities
- PHP with openssl extension (PHP 5.5 and higher)
- PHP mb-string extension
- Composer to install
From GitHub mirror
Installation from public GitHub repository
With composer (RECOMENDED)
If you are familiar with composer, you can install latest stable version with composer too.
There are both versions and you have to be a developer.
Configuration
Default configuration file is located in
Default configuration per each certificate type looks like
You can add new configuration if you want anther certificate type
Usage
With this script you can sign certificates for CA, Intermediate CA, users and servers. Before you can do this you will need create your CA and Intermediate CA certificates
Creating CA
Example to create CA
Creating Intermediate CA
To sign certificates you will need Intermediate CA certificate. Here is example:
- DesiredNameCa must be same as name of your certification authority.
- in you will specify which CA you want use to sign certificate is the same as DesiredNameCa
Signing Certificates
User certificates
Script will use intermediate.cert and key from MyCa folder.Certificates
If you need override certificate validity you can do it with option and add your lenght (in days). Example:
Server Certificates
Before you can sign server certificate go to and add to end of this file
now you can sign certificate with
Override certificate validity in days (same as in users certificates)
Running as CLI globally from system
If you want to run your script globally over the system is importatn to change configuration to read current working directory instead of parrent directory where is script installed. Go to and change following line as on example:
Script will now create webroot folder and all certificates i your working directory.
Windows
To run script anywhere from windows create Path to forlder which is containing with this content:
Linux
TODO comming soon
Backup
All you need is backup folder where are stored all certificates and your config files if you have changed them.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
TODO: Write history
Credits
- May Meow
- BlackFriday community on GitlabCafe
License
MIT