mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-29 08:44:52 +02:00
- (djm) [regress/krl.sh] Don't use ecdsa keys in environment that lack ECC.
This commit is contained in:
parent
2f20de5e3f
commit
2653f5c0a6
@ -1,3 +1,6 @@
|
|||||||
|
20130214
|
||||||
|
- (djm) [regress/krl.sh] Don't use ecdsa keys in environment that lack ECC.
|
||||||
|
|
||||||
20130212
|
20130212
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
- djm@cvs.openbsd.org 2013/01/24 21:45:37
|
- djm@cvs.openbsd.org 2013/01/24 21:45:37
|
||||||
|
@ -3,13 +3,19 @@
|
|||||||
|
|
||||||
tid="key revocation lists"
|
tid="key revocation lists"
|
||||||
|
|
||||||
|
# If we don't support ecdsa keys then this tell will be much slower.
|
||||||
|
ECDSA=ecdsa
|
||||||
|
if test "x$TEST_SSH_ECC" != "xyes"; then
|
||||||
|
$ECDSA=rsa
|
||||||
|
fi
|
||||||
|
|
||||||
# Do most testing with ssh-keygen; it uses the same verification code as sshd.
|
# Do most testing with ssh-keygen; it uses the same verification code as sshd.
|
||||||
|
|
||||||
# Old keys will interfere with ssh-keygen.
|
# Old keys will interfere with ssh-keygen.
|
||||||
rm -f $OBJ/revoked-* $OBJ/krl-*
|
rm -f $OBJ/revoked-* $OBJ/krl-*
|
||||||
|
|
||||||
# Generate a CA key
|
# Generate a CA key
|
||||||
$SSHKEYGEN -t ecdsa -f $OBJ/revoked-ca -C "" -N "" > /dev/null ||
|
$SSHKEYGEN -t $ECDSA -f $OBJ/revoked-ca -C "" -N "" > /dev/null ||
|
||||||
fatal "$SSHKEYGEN CA failed"
|
fatal "$SSHKEYGEN CA failed"
|
||||||
|
|
||||||
# A specification that revokes some certificates by serial numbers
|
# A specification that revokes some certificates by serial numbers
|
||||||
@ -48,7 +54,7 @@ keygen() {
|
|||||||
N=$1
|
N=$1
|
||||||
f=$OBJ/revoked-`printf "%04d" $N`
|
f=$OBJ/revoked-`printf "%04d" $N`
|
||||||
# Vary the keytype. We use mostly ECDSA since this is fastest by far.
|
# Vary the keytype. We use mostly ECDSA since this is fastest by far.
|
||||||
keytype=ecdsa
|
keytype=$ECDSA
|
||||||
case $N in
|
case $N in
|
||||||
2 | 10 | 510 | 1001) keytype=rsa;;
|
2 | 10 | 510 | 1001) keytype=rsa;;
|
||||||
4 | 30 | 520 | 1002) keytype=dsa;;
|
4 | 30 | 520 | 1002) keytype=dsa;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user