https://github.com/8ctopus/self-sign
command line tool to create self-signed SSL certificates
https://github.com/8ctopus/self-sign
openssl self-signed-certificate
Last synced: 7 months ago
JSON representation
command line tool to create self-signed SSL certificates
- Host: GitHub
- URL: https://github.com/8ctopus/self-sign
- Owner: 8ctopus
- License: mit
- Created: 2023-06-28T07:13:57.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T14:28:18.000Z (about 1 year ago)
- Last Synced: 2025-03-16T01:29:40.794Z (7 months ago)
- Topics: openssl, self-signed-certificate
- Language: PHP
- Homepage:
- Size: 453 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# selfsign
[](https://packagist.org/packages/8ctopus/self-sign)
`selfsign` is a command line tool to create self-signed SSL certificates, mainly for local testing.
It is notably used in my other project [apache php-fpm alpine](https://github.com/8ctopus/apache-php-fpm-alpine).## how to install
You have the choice between:
- composer install `composer require 8ctopus/self-sign`
- download the phar
- or build it yourself```sh
# download selfsign
curl -LO https://github.com/8ctopus/self-sign/releases/download/0.1.8/selfsign.phar# check hash against the one published under releases
sha256sum selfsign.phar# make phar executable
chmod +x selfsign.phar# rename phar (from here on optional)
mv selfsign.phar selfsign# move phar to /usr/local/bin/
mv selfsign /usr/local/bin/
```## how to use
### help
selfsign --help
### generate certificate authority
selfsign authority destination-dir
[INFO] generate certificate authority private key...
[INFO] generate certificate authority certificate...
[INFO] success!### generate certificate
selfsign certificate destination-dir test.com,www.test.com,api.test.com authority-dir
[INFO] generate self-signed SSL certificate for test.com...
[INFO] generate domain private key...
[INFO] create certificate signing request...
[INFO] create certificate config file...
[INFO] create signed certificate by certificate authority...
[INFO] success!## for development
### build phar
./build.sh
### debug code
php src/EntryPoint.php authority demo
php src/EntryPoint.php certificate demo test.com,www.test.com,api.test.com demo