https://github.com/ykushch/openssl-ucc
Generate Self-signed certificate script
https://github.com/ykushch/openssl-ucc
bash certificate script ucc-certificate
Last synced: 2 months ago
JSON representation
Generate Self-signed certificate script
- Host: GitHub
- URL: https://github.com/ykushch/openssl-ucc
- Owner: ykushch
- License: mit
- Created: 2016-09-04T18:17:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-07T09:38:46.000Z (almost 10 years ago)
- Last Synced: 2025-06-23T20:01:47.634Z (about 1 year ago)
- Topics: bash, certificate, script, ucc-certificate
- Language: Shell
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openssl-ucc
**Contributions are welcome!**
The script helps to generate self-signed [UCC certificate] based on `openssl.modified.cnf`.
The file `openssl.modified.cnf` is mostly being used for generation of certificate requests.
## Example
`bash generate-crt.sh -d 365` - will generate `server.key` and `server.crt`.
## Generate certificate based on your own sites
In order to generate certificate based on `openssl.modified.cnf` for your sites you should do the following:
1. Open the file `openssl.modified.cnf`.
2. Find section `[alt_names]`.
2. Add/Change/Remove `DNS.1`, `DNS.2` in the format `DNS.N = example2.com` where `N` is number.
3. Save file.
4. Run script `generate-crt.sh`.
5. Follow instructions.
### Script's Options
The script is very simple and straightforward. Currently, the following commands are supported:
`-d` or `--days` – sets the number of days how long the certificate will be valid.
`-c` or `--config` - sets the config name/path for `openssl.modified.cnf`.
[UCC certificate]: https://www.sslshopper.com/unified-communications-uc-ssl-certificates.html