or download this
Code used :
my $certificate = $opts{certificate};
my $private_key = $opts{'private-key'};
...
( defined $intermediate_key ) ? $intermediate_key : 'n
+',
];
This code was effective till the response passed was 'n' for prompt 'D
+o you want to continue entering root and/or intermediate certificates
+', but not effective if the intermediate certificate chain is provide
+d.