11# ca-gen
22
3+ [ ![ Build Status] ( https://travis-ci.org/devilbox/cert-gen.svg?branch=master )] ( https://travis-ci.org/devilbox/cert-gen )
4+ [ ![ Join the chat at https://gitter.im/devilbox/Lobby ] ( https://badges.gitter.im/devilbox/Lobby.svg )] ( https://gitter.im/devilbox/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge )
5+ ![ Tag] ( https://img.shields.io/github/tag/devilbox/ca-gen.svg )
6+ [ ![ License] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://opensource.org/licenses/MIT )
7+
38Easily create your own CA and self-signed certificates.
49
5- CA can be imported into Chrome, Firefox and Internet Explorer for local development.
10+ The generated CA can be imported into Chrome, Firefox or Internet Explorer for local development.
11+ All subsequent created certificates will then be valid SSL certificates to each browser.
12+
13+ <img width =" 200 " style =" width :200px ;" src =" img/address-bar.png " />
14+
15+ ** Table of Contents**
16+
17+ 1 . [ Available Tools] ( #available-tools )
18+ 1 . [ Tools] ( #tools )
19+ 2 . [ Requirements] ( #requirements )
20+ 3 . [ Installation] ( #installation )
21+ 2 . [ Create Certificate Authoriy] ( #create-certificate-authority )
22+ 1 . [ Usage: ca-gen] ( #usage-ca-gen )
23+ 2 . [ Execute: ca-gen] ( #execute-ca-gen )
24+ 3 . [ Example: CA] ( #example-ca )
25+ 3 . [ Create SSL Certificate] ( #create-ssl-certificate )
26+ 1 . [ Usage: cert-gen] ( #usage-cert-gen )
27+ 2 . [ Execute: cert-gen] ( #execute-cert-gen )
28+ 3 . [ Example: SSL certificate] ( #example-ssl-certificate )
29+ 4 . [ Import CA into Chrome] ( #import-ca-into-chrome )
30+ 5 . [ License] ( #license )
31+
32+ ----
633
734## Available Tools
835
9- * [ ca-gen] ( bin/ca-gen )
10- * [ cert-gen] ( bin/cert-gen )
36+ #### Tools
1137
38+ | Tools | Description |
39+ | --------------------------| -------------|
40+ | [ ca-gen] ( bin/ca-gen ) | Creates a certificate authority |
41+ | [ cert-gen] ( bin/cert-gen ) | Creates SSL certificates signed by a certificate authority |
1242
13- ## Create CA
43+ #### Requirements
1444
15- #### Devilbox example
45+ * ` openssl `
46+ * ` bash `
47+
48+ #### Installation
1649``` bash
17- $ ca-gen -v -c DE -s Berlin -l Berlin -o Devilbox -u Devilbox -n devilbox.org \
18- -e
[email protected] devilbox-rootCA.key devilbox-rootCA.crt
50+ $ sudo make install
1951```
2052
21- #### Usage
53+
54+ ## Create Certificate Authority
55+
56+ #### Usage: ca-gen
57+ The following shows the general usage for ` ca-gen ` :
2258``` bash
2359USAGE: ca-gen -n CN [-kdcslouev] < keyfile> < crtfile>
2460 ca-gen --help
@@ -43,7 +79,14 @@ Required parameter
4379 < crtfile> Path to output cert file
4480```
4581
46- #### Example output
82+ #### Execute: ca-gen
83+ The following command shows how the CA is generated for the [ Devilbox] ( https;//github.com/cytopia/devilbox ) :
84+ ``` bash
85+ $ ca-gen -v -c DE -s Berlin -l Berlin -o Devilbox -u Devilbox -n devilbox.org \
86+ -e
[email protected] devilbox-rootCA.key devilbox-rootCA.crt
87+ ```
88+
89+ #### Example: CA
4790``` bash
4891Certificate:
4992 Data:
@@ -106,21 +149,10 @@ Certificate:
106149```
107150
108151
109- ## Create certificate
110-
111- #### Devilbox example
112- ``` bash
113- $ cert-gen -v -c DE -s Berlin -l Berlin -o Devilbox -u Devilbox \
114- -n project.loc -e
[email protected] \
115- -a ' *.project.loc,*.www.project.loc' \
116- devilbox-rootCA.key \
117- devilbox-rootCA.crt \
118- project.loc.key \
119- project.loc.csr \
120- project.loc.crt
121- ```
152+ ## Create SSL Certificate
122153
123- #### Usage
154+ #### Usage: cert-gen
155+ The following shows the general usage for cert-gen:
124156``` bash
125157USAGE: cert-gen -n CN [-kdcsloueav] < ca-key> < ca-crt> < key> < csr> < crt>
126158 cert-gen --help
@@ -149,7 +181,20 @@ Required parameter
149181 < crt> Path to output certificate crt file
150182```
151183
152- #### Example output
184+ #### Execute: cert-gen
185+ The following command shows how SSL certificates are generated for the [ Devilbox] ( github.com/cytopia/devilbox ) :
186+ ``` bash
187+ $ cert-gen -v -c DE -s Berlin -l Berlin -o Devilbox -u Devilbox \
188+ -n project.loc -e
[email protected] \
189+ -a ' *.project.loc,*.www.project.loc' \
190+ devilbox-rootCA.key \
191+ devilbox-rootCA.crt \
192+ project.loc.key \
193+ project.loc.csr \
194+ project.loc.crt
195+ ```
196+
197+ #### Example: SSL Certificate
153198``` bash
154199Certificate:
155200 Data:
@@ -206,7 +251,8 @@ Certificate:
206251 02:db:c7:03
207252```
208253
209- ## Import to Chrome
254+
255+ ## Import CA into Chrome
210256
211257** 1. Open Chrome settings - scroll down and click ` Advanced ` **
212258
0 commit comments