From d8e79f3abd4d95ee1be6d0d0c22fce2606cab5c2 Mon Sep 17 00:00:00 2001 From: Paul Wouters Date: Wed, 8 Oct 2014 13:08:44 -0400 Subject: [PATCH] - Added Petr Spacek's patch that adds the config option (rhbz#1123354) --- opendnssec-1.4.6-extract.patch | 168 +++++++++++++++++++++++++++++++++ opendnssec.spec | 7 +- 2 files changed, 174 insertions(+), 1 deletion(-) create mode 100644 opendnssec-1.4.6-extract.patch diff --git a/opendnssec-1.4.6-extract.patch b/opendnssec-1.4.6-extract.patch new file mode 100644 index 0000000..6213d38 --- /dev/null +++ b/opendnssec-1.4.6-extract.patch @@ -0,0 +1,168 @@ +commit 672d2c75ccd3cd5f2317bb76af4c9cc4e5aa4a37 +Author: Petr Spacek +Date: Fri Jul 18 16:19:36 2014 +0200 + + add libhsm configuration option + + This option allows user to generate private keys with CKA_EXTRACTABLE + flag set to TRUE. Defaults to FALSE. + +diff --git a/NEWS b/NEWS +index 4db7038..2efa176 100644 +--- a/NEWS ++++ b/NEWS +@@ -1,3 +1,8 @@ ++* Enforcer: New repository option allows to generate keys ++ with CKA_EXTRACTABLE attribute set to TRUE so keys can be wrapped ++ and extracted from HSM. ++ ++ + OpenDNSSEC 1.4.6 - 2014-07-21 + + * Signer Engine: Print secondary server address when logging notify reply +diff --git a/conf/conf.rnc b/conf/conf.rnc +index 71d527f..65f837e 100644 +--- a/conf/conf.rnc ++++ b/conf/conf.rnc +@@ -50,7 +50,10 @@ start = element Configuration { + element RequireBackup { empty }?, + + # Do not maintain public keys in the repository (optional) +- element SkipPublicKey { empty }? ++ element SkipPublicKey { empty }?, ++ ++ # Generate extractable keys (CKA_EXTRACTABLE = TRUE) (optional) ++ element AllowExtraction { empty }? + }* + }, + +diff --git a/conf/conf.xml.in b/conf/conf.xml.in +index 0ef2ab9..0536681 100644 +--- a/conf/conf.xml.in ++++ b/conf/conf.xml.in +@@ -9,6 +9,9 @@ + OpenDNSSEC + 1234 + ++ + + + ++ ++ ++ ++ + + + diff --git a/opendnssec.spec b/opendnssec.spec index d96c0fe..3ca0770 100644 --- a/opendnssec.spec +++ b/opendnssec.spec @@ -4,7 +4,7 @@ Summary: DNSSEC key and zone management software Name: opendnssec Version: 1.4.6 -Release: 2%{?prever}%{?dist} +Release: 3%{?prever}%{?dist} License: BSD Url: http://www.opendnssec.org/ Source0: http://www.opendnssec.org/files/source/%{?prever:testing/}%{name}-%{version}%{?prever}.tar.gz @@ -14,6 +14,7 @@ Source3: ods.sysconfig Source4: conf.xml Source5: tmpfiles-opendnssec.conf Source6: opendnssec.cron +Patch1: opendnssec-1.4.6-extract.patch Group: Applications/System Requires: opencryptoki, softhsm, systemd-units @@ -40,6 +41,7 @@ name server. It requires a PKCS#11 crypto module library, such as softhsm %prep %setup -q -n %{name}-%{version}%{?prever} +%patch1 -p1 # bump default policy ZSK keysize to 2048 sed -i "s/1024/2048/" conf/kasp.xml.in @@ -118,6 +120,9 @@ ods-ksmutil update all >/dev/null 2>/dev/null ||: %systemd_postun_with_restart ods-signerd.service %changelog +* Wed Oct 08 2014 Paul Wouters - 1.4.6-3 +- Added Petr Spacek's patch that adds the config option (rhbz#1123354) + * Sun Aug 17 2014 Fedora Release Engineering - 1.4.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild