Proof of Concept to generate certificate signing requests in a web browser using node-forge.
Jan Dittberner
5c3f0ea942
This commit adds a simple go backend calling openssl ca to sign CRS coming from the client. The JavaScript code in src/index.html has been extended to send requests to the sign endpoint and display the resulting certificate in a separate div element. A script setup_example_ca.sh and an openssl configuration file ca.cnf has been added to allow quick setup of a simple example CA. |
||
---|---|---|
src | ||
.gitignore | ||
ca.cnf | ||
COPYING | ||
go.mod | ||
gulpfile.js | ||
main.go | ||
package-lock.json | ||
package.json | ||
README.md | ||
setup_example_ca.sh |
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.
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
-
Run a Python web server with the generated resources
python3 -m http.server -d public
Open http://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