Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 4f32b29

Browse files
authored
Update README.md
1 parent 90afb4e commit 4f32b29

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ Save certificates to localhost
109109
scp -r [email protected]:/path/to/foo /home/user/Desktop/
110110

111111
To generate localhost SSL
112-
Create Dockerfile
112+
Use this Dockerfile
113+
114+
```Docker
113115
# we use the tiny alpine linux as base
114116
FROM alpine
115117
@@ -123,12 +125,15 @@ WORKDIR /openssl-certs
123125
VOLUME /openssl-certs
124126
125127
ENTRYPOINT ["openssl"]
128+
```
126129

127-
use it
130+
to use it
131+
```bash
128132
docker build -t my-openssl:latest .
129133

130134
docker run -it --rm -v "C:/some/path:/openssl-certs" my-openssl
131135
req -newkey rsa:2048 -keyout privkey.pem -x509 -days 365 -out fullchain.pem
132136

133137
req -x509 -nodes -new -sha256 -days 1024 -newkey rsa:2048 -keyout privkey.pem -out fullchain.pem
134138
x509 -outform pem -in fullchain.pem -out RootCA.crt
139+
```

0 commit comments

Comments
 (0)