Bug 341371. Make new -g Name option work for non-RSA keys, too. r=alexei

git-svn-id: svn://10.0.0.236/trunk@231618 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nelson%bolyard.com 2007-08-08 00:34:02 +00:00
parent 7f67851caa
commit 28a6417ec6

View File

@ -314,8 +314,7 @@ CertReq(SECKEYPrivateKey *privk, SECKEYPublicKey *pubk, KeyType keyType,
name = CERT_GetCommonName(subject);
if (!name) {
fprintf(stderr, "You must specify a common name\n");
return SECFailure;
name = strdup("(not specified)");
}
if (!phone)
@ -2135,6 +2134,7 @@ secuCommandFlag certutil_options[] =
rv = SECFailure;
goto shutdown;
}
keytype = privkey->keyType;
} else {
privkey =
CERTUTIL_GeneratePrivateKey(keytype, slot, keysize,