--- approveCSRnotSigned.dist	2005-09-27 18:51:58.000000000 +0200
+++ approveCSRnotSigned	2005-09-27 18:56:30.000000000 +0200
@@ -37,8 +37,11 @@
 $text .= $req->getParsed()->{KEY};
 
 ## FIXME: should we check the subject here if it is not dynamic via serials?
+my $allowPublicKeyReuse = getRequired('AllowPublicKeyReuse');
 
-if ($dataType !~ /RENEW/i and not $req->getParsed()->{HEADER}->{RENEW}) {
+if ($dataType !~ /RENEW/i and not $req->getParsed()->{HEADER}->{RENEW}
+    and not ($allowPublicKeyReuse =~ /YES/i));
+{
 	# check the public key
 	## Check if there are certificates with the same keys
 	my @certList = $db->searchItems( DATATYPE=>    "CERTIFICATE",
