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:
parent
7f67851caa
commit
28a6417ec6
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user