From 3503e09212d84c8c399eeb7007da81e2304ea735 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Mon, 30 Nov 2020 00:55:34 +0100 Subject: [PATCH] Update README.md for the Go backend --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1e7147c..ee8c6eb 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ This repository contains a small proof of concept implementation of browser based PKCS#10 certificate signing request and PKCS#12 key store generation using [node-forge](https://github.com/digitalbazaar/forge). +The backend is implemented in [Go](https://golang.org/) and utilizes openssl +for the signing operations. + ## Running 1. Clone the repository @@ -21,13 +24,21 @@ using [node-forge](https://github.com/digitalbazaar/forge). gulp ``` -3. Run a Python web server with the generated resources +2. Setup the example CA and a server certificate and key ``` - python3 -m http.server -d public + ./setup_example_ca.sh + openssl req -new -x509 -days 365 -subj "/CN=localhost" -addext subjectAltName=DNS:localhost -newkey rsa:3072 \ + -nodes -out server.crt.pem -keyout server.key.pem ``` - Open http://localhost:8000/ in your browser. +3. Run the Go based backend + + ``` + go run main.go + ``` + + Open https://localhost:8000/ in your browser. 4. Run gulp watch