Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 029e94e

Browse files
committed
certs path in keygen
1 parent 914242d commit 029e94e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

keygen.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
::! /bin/bash
1+
#! /bin/bash
22

33
openssl req \
44
-new -sha256 -nodes \
5-
-out localhost.csr \
6-
-newkey rsa:2048 -keyout localhost.key \
5+
-out ./certs/localhost.csr \
6+
-newkey rsa:2048 -keyout ./certs/localhost.key \
77
-subj "/C=AU/ST=WA/L=City/O=Organization/OU=OrganizationUnit/CN=localhost/emailAddress=demo@example.com"
88

99
openssl x509 \
1010
-req \
11-
-in localhost.csr \
12-
-CA orbit-db-http-api.pem -CAkey orbit-db-http-api.key -CAcreateserial \
13-
-out localhost.crt \
11+
-in ./certs/localhost.csr \
12+
-CA ./certs/orbit-db-http-api.pem -CAkey ./certs/orbit-db-http-api.key -CAcreateserial \
13+
-out ./certs/localhost.crt \
1414
-days 500 \
1515
-sha256 \
1616
-extfile <(echo " \

0 commit comments

Comments
 (0)