From d9621fa74c1791671fd47530b922c5d0835f1397 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 17 Nov 2015 17:03:37 +0200
Subject: [PATCH] WIP PKCS12 generation.

---
 .gitignore | 1 +
 README.rst | 2 +-
 ssl-ca     | 6 ++++++
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index ca35fa3..4eae557 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ keys/*
 openssl.cnf
 CA.key
 CA.crt
+CA.p12
diff --git a/README.rst b/README.rst
index de5b017..6af8d0f 100644
--- a/README.rst
+++ b/README.rst
@@ -86,4 +86,4 @@ at: https://www.shore.co.il/cgit/.
 TODO
 ----
 
-Nothing to see here.
+- PKCS12 file for browser import (also tests).
diff --git a/ssl-ca b/ssl-ca
index 61bcf1e..49a036b 100755
--- a/ssl-ca
+++ b/ssl-ca
@@ -62,6 +62,12 @@ init () {
         -keyout CA.key \
         -extensions v3_ca \
         -out CA.crt
+    openssl pkcs12 \
+        -export \
+        -in CA.crt \
+        -inkey CA.key \
+        -out CA.p12 \
+        -passout pass:
 }
 
 sign_key () {
-- 
GitLab