Code for the community website at https://community.cacert.org/
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jan Dittberner 3503e09212 | 4 years ago | |
---|---|---|
src | 4 years ago | |
.gitignore | 4 years ago | |
COPYING | 4 years ago | |
README.md | 4 years ago | |
ca.cnf | 4 years ago | |
go.mod | 4 years ago | |
gulpfile.js | 4 years ago | |
main.go | 4 years ago | |
package-lock.json | 4 years ago | |
package.json | 4 years ago | |
setup_example_ca.sh | 4 years ago |
README.md
Browser PKCS#10 CSR generation PoC
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.
The backend is implemented in Go and utilizes openssl for the signing operations.
Running
-
Clone the repository
git clone https://git.dittberner.info/jan/browser_csr_generation.git
-
Get dependencies and build assets
cd browser_csr_generation npm install --global gulp-cli npm install gulp
-
Setup the example CA and a server certificate and key
./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
-
Run the Go based backend
go run main.go
Open https://localhost:8000/ in your browser.
-
Run gulp watch
You can run a gulp watch in a second terminal window to automatically publish changes to the files in the
src
directory:gulp watch