https://github.com/aerogo/certificate
:lock: Creates self-signed certificates for local development.
https://github.com/aerogo/certificate
certificate self-signed tool
Last synced: 8 months ago
JSON representation
:lock: Creates self-signed certificates for local development.
- Host: GitHub
- URL: https://github.com/aerogo/certificate
- Owner: aerogo
- License: other
- Created: 2018-06-22T15:08:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-26T04:19:45.000Z (over 6 years ago)
- Last Synced: 2025-09-16T00:35:52.866Z (9 months ago)
- Topics: certificate, self-signed, tool
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 23
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# certificate
[![Godoc][godoc-image]][godoc-url]
[![Report][report-image]][report-url]
[![Tests][tests-image]][tests-url]
[![Coverage][coverage-image]][coverage-url]
[![Sponsor][sponsor-image]][sponsor-url]
Creates self-signed certificates for local development using ECDSA and x509 Version 3. This will give you a green lock in modern versions of Chrome.
## Installation
```shell
go get -u github.com/aerogo/certificate/...
```
## Usage
### Single domain
```shell
makecert -host local.example.com
```
### Multi domain
```shell
makecert -host local.example.com,localhost,127.0.0.1
```
## Output
The tool will create 4 files in the current directory:
* **root.crt** (import this as a trusted authority into your browser)
* **root.key**
* **server.crt** (certificate used in your server)
* **server.key** (private key used in your server)
## Style
Please take a look at the [style guidelines](https://github.com/akyoto/quality/blob/master/STYLE.md) if you'd like to make a pull request.
## Sponsors
| [](https://github.com/cedricfung) | [](https://github.com/soulcramer) | [](https://twitter.com/eduardurbach) |
| --- | --- | --- |
| [Cedric Fung](https://github.com/cedricfung) | [Scott Rayapoullé](https://github.com/soulcramer) | [Eduard Urbach](https://eduardurbach.com) |
Want to see [your own name here?](https://github.com/users/akyoto/sponsorship)
[godoc-image]: https://godoc.org/github.com/aerogo/certificate?status.svg
[godoc-url]: https://godoc.org/github.com/aerogo/certificate
[report-image]: https://goreportcard.com/badge/github.com/aerogo/certificate
[report-url]: https://goreportcard.com/report/github.com/aerogo/certificate
[tests-image]: https://cloud.drone.io/api/badges/aerogo/certificate/status.svg
[tests-url]: https://cloud.drone.io/aerogo/certificate
[coverage-image]: https://codecov.io/gh/aerogo/certificate/graph/badge.svg
[coverage-url]: https://codecov.io/gh/aerogo/certificate
[sponsor-image]: https://img.shields.io/badge/github-donate-green.svg
[sponsor-url]: https://github.com/users/akyoto/sponsorship