protected function _signParameters()
{
$pubkey = $this->getPersonalPublicKey(true);
$additional = array();
if ($pubkey) {
$additional[] = $this->getPersonalPublicKey();
$secondary = true;
} else {
$pubkey = $this->getPersonalPublicKey();
$secondary = false;
}
$additional[] = $this->getAdditionalCert($secondary);
if ($secondary) {
$additional[] = $this->getAdditionalCert();
}
return array('type' => 'signature', 'pubkey' => $pubkey, 'privkey' => $this->getPersonalPrivateKey($secondary), 'passphrase' => $this->getPassphrase($secondary), 'sigtype' => 'detach', 'certs' => implode("\n", $additional));
}