From: Matt Nordhoff Date: Fri, 30 Nov 2018 14:06:08 +0000 (+0000) Subject: pdnsutil documentation ECC algorithm updates X-Git-Tag: rec-4.2.0-alpha1~81^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd2565d4e93404b0626df05ece8a4dab3a6a4d1f;p=pdns pdnsutil documentation ECC algorithm updates * generate-zone-key's default algorithm has changed to ECDSA256 * Remove GOST from and add EdDSA to {add,generate}-zone-key usage messages * Remove an old comment --- diff --git a/docs/manpages/pdnsutil.1.rst b/docs/manpages/pdnsutil.1.rst index 1d1fcbf2a..32fe17865 100644 --- a/docs/manpages/pdnsutil.1.rst +++ b/docs/manpages/pdnsutil.1.rst @@ -68,7 +68,7 @@ export-zone-key *ZONE* *KEY-ID* and NSD/LDNS. generate-zone-key {**KSK**,\ **ZSK**} [*ALGORITHM*] [*KEYBITS*] Generate a ZSK or KSK to stdout with specified algorithm and bits - and print it on STDOUT. If *ALGORITHM* is not set, RSASHA512 is + and print it on STDOUT. If *ALGORITHM* is not set, ECDSA256 is used. If *KEYBITS* is not set, an appropriate keysize is selected for *ALGORITHM*. Each ECC-based algorithm supports only one valid *KEYBITS* value: For ECDSA256 and ED25519, it is 256; for ECDSA384, diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index e7059908e..0a152049e 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1905,7 +1905,7 @@ try cout<<"add-record ZONE NAME TYPE [ttl] content"< dpk(DNSCryptoKeyEngine::make(algorithm)); // defaults to RSA for now, could be smart w/algorithm! XXX FIXME + DNSSECPrivateKey dspk; + shared_ptr dpk(DNSCryptoKeyEngine::make(algorithm)); if(!bits) { if(algorithm <= 10) bits = keyOrZone ? 2048 : 1024;