From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-commits+bounces-417539-garchives=archives.gentoo.org@lists.gentoo.org>) id 1RmWEU-0007kN-Vq for garchives@archives.gentoo.org; Sun, 15 Jan 2012 19:59:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D82D0E0716; Sun, 15 Jan 2012 19:59:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A3C7CE0716 for <gentoo-commits@lists.gentoo.org>; Sun, 15 Jan 2012 19:59:07 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2B4B71B4009 for <gentoo-commits@lists.gentoo.org>; Sun, 15 Jan 2012 19:59:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 47EBF80042 for <gentoo-commits@lists.gentoo.org>; Sun, 15 Jan 2012 19:59:06 +0000 (UTC) From: "Jory Pratt" <anarchy@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jory Pratt" <anarchy@gentoo.org> Message-ID: <036f34bc013b342dc9d44ba64546cf826cdd227f.anarchy@gentoo> Subject: [gentoo-commits] proj/mozilla:master commit in: scripts/ X-VCS-Repository: proj/mozilla X-VCS-Files: scripts/ca-certificates-2-nssdb scripts/nssdb_passwd X-VCS-Directories: scripts/ X-VCS-Committer: anarchy X-VCS-Committer-Name: Jory Pratt X-VCS-Revision: 036f34bc013b342dc9d44ba64546cf826cdd227f Date: Sun, 15 Jan 2012 19:59:06 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c1d79097-07c8-4695-8532-71223c6231c7 X-Archives-Hash: b01482d096abfbd9c3654333e6d743aa 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=3Dproj/mozilla.git;a= =3Dcommit;h=3D036f34bc 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=3D"$PWD/nssdb_passwd" + +mkdir -p $HOME/.pki/nssdb=20 + +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 /e= tc/ssl/certs/$x +done + +echo "Please also ensure you add 'export NSS_DEFAULT_DB_TYPE=3D\"sql\"' = via $HOME/.bashrc" +echo "To see a list of all certificate you may run, 'certutil -L -d $HOM= E/.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