From: "Jory Pratt" <anarchy@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mozilla:master commit in: scripts/
Date: Sun, 15 Jan 2012 19:59:06 +0000 (UTC) [thread overview]
Message-ID: <036f34bc013b342dc9d44ba64546cf826cdd227f.anarchy@gentoo> (raw)
commit: 036f34bc013b342dc9d44ba64546cf826cdd227f
Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 15 19:58:29 2012 +0000
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Sun Jan 15 19:58:29 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=036f34bc
basic script to generate an nss shared db with instructions
---
scripts/ca-certificates-2-nssdb | 19 +++++++++++++++++++
scripts/nssdb_passwd | 1 +
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/scripts/ca-certificates-2-nssdb b/scripts/ca-certificates-2-nssdb
new file mode 100755
index 0000000..219c602
--- /dev/null
+++ b/scripts/ca-certificates-2-nssdb
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# This file is only intended to generate a shared db for nss
+# in the users home dir. This will be the first step in creating
+# a database that can be shared amongs applications using the sql
+# backend.
+
+PASSWD_FILE="$PWD/nssdb_passwd"
+
+mkdir -p $HOME/.pki/nssdb
+
+certutil -N -f ${PASSWD_FILE} -d sql:.pki/nssdb
+
+for x in `ls /etc/ssl/certs | grep pem`; do
+ certutil -f ${PASSWD_FILE} -d sql:.pki/nssdb -A -t "CT,c,c" -n $x -i /etc/ssl/certs/$x
+done
+
+echo "Please also ensure you add 'export NSS_DEFAULT_DB_TYPE=\"sql\"' via $HOME/.bashrc"
+echo "To see a list of all certificate you may run, 'certutil -L -d $HOME/.pki/nssdb,'"
diff --git a/scripts/nssdb_passwd b/scripts/nssdb_passwd
new file mode 100644
index 0000000..ea20e07
--- /dev/null
+++ b/scripts/nssdb_passwd
@@ -0,0 +1 @@
+GentooF4n
next reply other threads:[~2012-01-15 19:59 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-15 19:59 Jory Pratt [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-07-09 20:02 [gentoo-commits] proj/mozilla:master commit in: scripts/ Jory Pratt
2017-11-16 20:44 Ian Stakenvicius
2017-10-06 17:17 Ian Stakenvicius
2016-11-22 19:42 Ian Stakenvicius
2016-06-02 15:19 Ian Stakenvicius
2016-05-05 14:45 Ian Stakenvicius
2016-05-05 3:04 Ian Stakenvicius
2016-05-03 15:34 Ian Stakenvicius
2016-04-27 20:48 Ian Stakenvicius
2016-04-27 15:56 Ian Stakenvicius
2016-04-27 15:53 Ian Stakenvicius
2016-04-27 14:44 Ian Stakenvicius
2015-11-27 19:25 Ian Stakenvicius
2012-07-05 1:38 Jory Pratt
2012-05-23 10:30 Nirbheek Chauhan
2012-03-26 1:55 Jory Pratt
2012-02-18 14:39 Jory Pratt
2012-02-04 18:42 Nirbheek Chauhan
2012-01-30 13:36 Jory Pratt
2011-07-06 4:22 Nirbheek Chauhan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=036f34bc013b342dc9d44ba64546cf826cdd227f.anarchy@gentoo \
--to=anarchy@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox