"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.12.3-P1/bin/python/isc/tests/test-policies/01-keysize.pol" (7 Dec 2018, 1004 Bytes) of package /linux/misc/dns/bind9/9.12.3-P1/bind-9.12.3-P1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 policy keysize_rsa {
   13 	algorithm rsasha1;
   14 	coverage 1y;
   15 	roll-period zsk 3mo;
   16 	pre-publish zsk 2w;
   17 	post-publish zsk 2w;
   18 	roll-period ksk 1y;
   19 	pre-publish ksk 1mo;
   20 	post-publish ksk 2mo;
   21 	keyttl 1h;
   22 	key-size ksk 2048;
   23 	key-size zsk 1024;
   24 };
   25 
   26 policy keysize_dsa {
   27 	algorithm dsa;
   28 	coverage 1y;
   29 	key-size ksk 2048;
   30 	key-size zsk 1024;
   31 };
   32 
   33 zone good_rsa.test {
   34 	policy keysize_rsa;
   35 };
   36 
   37 zone bad_rsa.test {
   38 	policy keysize_rsa;
   39 	key-size ksk 511;
   40 };
   41 
   42 zone good_dsa.test {
   43 	policy keysize_dsa;
   44 	key-size ksk 1024;
   45 	key-size zsk 768;
   46 };
   47 
   48 zone bad_dsa.test {
   49 	policy keysize_dsa;
   50 	key-size ksk 1024;
   51 	key-size zsk 769;
   52 };