use strict;
my %option;
die "usage: keyconv.pl [-a alg] [-k (to indicate KSK)] -e engine -l label [-p (path to store key)] -i filename domainname\n" if $option{h} || (not defined $option{i}) || (not defined $option{e}) || (not defined $option{l});
# The default path is local.
# The default algorithm is 5.
# The algorithm is either 5 or 133.
# standard flags (value is 256) plus optionally the KSK flag.
close(PFILE);
my ($m,$e)= $rsa->get_key_parameters;
close(PFILE);
open(PFILE, "> $option{p}/K".$ARGV[0].".+".sprintf("%03d",$option{a})."+".$keyrr->keytag.".private");
print PFILE "Private-key-format: v1.2\n";
my $engine="";
my $label="";
close(PFILE);