/*
 * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * See the COPYRIGHT file distributed with this work for additional
 * information regarding copyright ownership.
 */

dnssec-policy "autosign" {

	signatures-refresh P1W;
	signatures-validity P2W;
	signatures-validity-dnskey P2W;

	dnskey-ttl 300;

	keys {
		ksk key-directory lifetime P2Y algorithm 13;
		zsk key-directory lifetime P1Y algorithm 13;
	};
};

dnssec-policy "zsk-prepub" {

	signatures-refresh P1W;
	signatures-validity P2W;
	signatures-validity-dnskey P2W;

	dnskey-ttl 3600;
	publish-safety P1D;
	retire-safety P2D;

	keys {
		ksk key-directory lifetime P2Y  algorithm 13;
		zsk key-directory lifetime P30D algorithm 13;
	};

	zone-propagation-delay PT1H;
	zone-max-ttl 1d;
};

dnssec-policy "ksk-doubleksk" {

	signatures-refresh P1W;
	signatures-validity P2W;
	signatures-validity-dnskey P2W;

	dnskey-ttl 2h;
	publish-safety P1D;
	retire-safety P2D;

	keys {
		ksk key-directory lifetime P60D algorithm 13;
		zsk key-directory lifetime P1Y  algorithm 13;
	};

	zone-propagation-delay PT1H;
	zone-max-ttl 1d;

	parent-ds-ttl 3600;
	parent-registration-delay P1D;
	parent-propagation-delay PT1H;
};

dnssec-policy "csk-roll" {

	signatures-refresh P5D;
	signatures-validity 30d;
	signatures-validity-dnskey 30d;

	dnskey-ttl 1h;
	publish-safety PT1H;
	retire-safety 2h;

	keys {
		csk key-directory lifetime P6M algorithm 13;
	};

	zone-propagation-delay 1h;
	zone-max-ttl P1D;

	parent-ds-ttl 1h;
	parent-registration-delay 1d;
	parent-propagation-delay 1h;
};

dnssec-policy "csk-roll2" {

	signatures-refresh 12h;
	signatures-validity P1D;
	signatures-validity-dnskey P1D;

	dnskey-ttl 1h;
	publish-safety PT1H;
	retire-safety 1h;

	keys {
		csk key-directory lifetime P6M algorithm 13;
	};

	zone-propagation-delay PT1H;
	zone-max-ttl 1d;

	parent-ds-ttl PT1H;
	parent-registration-delay P1W;
	parent-propagation-delay PT1H;
};
