mirror of
https://github.com/SourceFellows/gobuch.git
synced 2024-10-22 22:05:35 +00:00
16 lines
547 B
Markdown
16 lines
547 B
Markdown
|
Zertifikate erstellen
|
||
|
=====================
|
||
|
|
||
|
- Root Zertifikat erstellen:
|
||
|
```
|
||
|
openssl genrsa -out myRoot.key 2048
|
||
|
openssl req -x509 -new -nodes -key myRoot.key -sha256 -days 3650 -out myRoot.crt
|
||
|
```
|
||
|
|
||
|
- Zertifikat für Server erstellen:
|
||
|
```
|
||
|
#CSR erstellen
|
||
|
openssl req -new -sha256 -nodes -out test.example.csr -newkey rsa:2048 -keyout test.example.key -config server-cert.request.conf
|
||
|
|
||
|
openssl x509 -req -in test.example.csr -CA myRoot.crt -CAkey myRoot.key -CAcreateserial -extfile test.example.ext.cnf -out test.example.crt -days 3650 -sha256
|
||
|
```
|