- djm@cvs.openbsd.org 2001/12/21 08:52:22
[ssh-keygen.1 ssh-keygen.c] Remove default (rsa1) key type; ok markus@
This commit is contained in:
parent
c68d43335f
commit
a41c8b15bd
|
@ -9,6 +9,10 @@
|
||||||
- Add OpenSSL sanity check: verify that header version matches version
|
- Add OpenSSL sanity check: verify that header version matches version
|
||||||
reported by library
|
reported by library
|
||||||
- (djm) Fix some bugs I introduced into ssh-rand-helper yesterday
|
- (djm) Fix some bugs I introduced into ssh-rand-helper yesterday
|
||||||
|
- OpenBSD CVS Sync
|
||||||
|
- djm@cvs.openbsd.org 2001/12/21 08:52:22
|
||||||
|
[ssh-keygen.1 ssh-keygen.c]
|
||||||
|
Remove default (rsa1) key type; ok markus@
|
||||||
|
|
||||||
20020121
|
20020121
|
||||||
- (djm) Rework ssh-rand-helper:
|
- (djm) Rework ssh-rand-helper:
|
||||||
|
@ -7156,4 +7160,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1724 2002/01/22 11:16:03 djm Exp $
|
$Id: ChangeLog,v 1.1725 2002/01/22 12:05:08 djm Exp $
|
||||||
|
|
11
ssh-keygen.1
11
ssh-keygen.1
|
@ -1,4 +1,4 @@
|
||||||
.\" $OpenBSD: ssh-keygen.1,v 1.51 2001/11/21 18:49:14 stevesk Exp $
|
.\" $OpenBSD: ssh-keygen.1,v 1.52 2001/12/21 08:52:22 djm Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" -*- nroff -*-
|
.\" -*- nroff -*-
|
||||||
.\"
|
.\"
|
||||||
|
@ -86,10 +86,11 @@
|
||||||
generates, manages and converts authentication keys for
|
generates, manages and converts authentication keys for
|
||||||
.Xr ssh 1 .
|
.Xr ssh 1 .
|
||||||
.Nm
|
.Nm
|
||||||
defaults to generating a RSA1 key for use by SSH protocol version 1.
|
can create RSA keys for use by SSH protocol version 1 and RSA or DSA
|
||||||
Specifying the
|
keys for use by SSH protocol version 2. The type of key to be generated
|
||||||
|
is specified with the
|
||||||
.Fl t
|
.Fl t
|
||||||
option instead creates a key for use by SSH protocol version 2.
|
option.
|
||||||
.Pp
|
.Pp
|
||||||
Normally each user wishing to use SSH
|
Normally each user wishing to use SSH
|
||||||
with RSA or DSA authentication runs this once to create the authentication
|
with RSA or DSA authentication runs this once to create the authentication
|
||||||
|
@ -202,8 +203,6 @@ for protocol version 1 and
|
||||||
or
|
or
|
||||||
.Dq dsa
|
.Dq dsa
|
||||||
for protocol version 2.
|
for protocol version 2.
|
||||||
The default is
|
|
||||||
.Dq rsa1 .
|
|
||||||
.It Fl B
|
.It Fl B
|
||||||
Show the bubblebabble digest of specified private or public key file.
|
Show the bubblebabble digest of specified private or public key file.
|
||||||
.It Fl C Ar comment
|
.It Fl C Ar comment
|
||||||
|
|
11
ssh-keygen.c
11
ssh-keygen.c
|
@ -12,7 +12,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: ssh-keygen.c,v 1.86 2001/12/19 07:18:56 deraadt Exp $");
|
RCSID("$OpenBSD: ssh-keygen.c,v 1.87 2001/12/21 08:52:22 djm Exp $");
|
||||||
|
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
|
@ -73,8 +73,7 @@ int convert_to_ssh2 = 0;
|
||||||
int convert_from_ssh2 = 0;
|
int convert_from_ssh2 = 0;
|
||||||
int print_public = 0;
|
int print_public = 0;
|
||||||
|
|
||||||
/* default to RSA for SSH-1 */
|
char *key_type_name = NULL;
|
||||||
char *key_type_name = "rsa1";
|
|
||||||
|
|
||||||
/* argv0 */
|
/* argv0 */
|
||||||
#ifdef HAVE___PROGNAME
|
#ifdef HAVE___PROGNAME
|
||||||
|
@ -835,7 +834,7 @@ usage(void)
|
||||||
int
|
int
|
||||||
main(int ac, char **av)
|
main(int ac, char **av)
|
||||||
{
|
{
|
||||||
char dotsshdir[16 * 1024], comment[1024], *passphrase1, *passphrase2;
|
char dotsshdir[MAXPATHLEN], comment[1024], *passphrase1, *passphrase2;
|
||||||
char *reader_id = NULL;
|
char *reader_id = NULL;
|
||||||
Key *private, *public;
|
Key *private, *public;
|
||||||
struct passwd *pw;
|
struct passwd *pw;
|
||||||
|
@ -937,6 +936,10 @@ main(int ac, char **av)
|
||||||
printf("Too many arguments.\n");
|
printf("Too many arguments.\n");
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
if (key_type_name == NULL) {
|
||||||
|
printf("You must specify a key type (-t).\n");
|
||||||
|
usage();
|
||||||
|
}
|
||||||
if (change_passphrase && change_comment) {
|
if (change_passphrase && change_comment) {
|
||||||
printf("Can only have one of -p and -c.\n");
|
printf("Can only have one of -p and -c.\n");
|
||||||
usage();
|
usage();
|
||||||
|
|
Loading…
Reference in New Issue