Certificate Generation Scripts; Ssh; Ssl - NETGEAR ProSafe GSM7212 Application Note

Configuring and enabling management security
Hide thumbs Also See for ProSafe GSM7212:
Table of Contents

Advertisement

The following two scripts and two helper files can be used to generate self-signed
certificates and authentication keys.

SSH

sshKeygen.sh
#!/bin/sh
##################################################################
#
# Generate key files for rsa and dsa
#
##################################################################
# RSA V1
/usr/bin/ssh-keygen -q -t rsa1 -f rsa1.key -C '' -N ''
# RSA V2
/usr/bin/ssh-keygen -q -t rsa
# DSA for V2
/usr/bin/ssh-keygen -q -t dsa

SSL

Exercise care when using cut and paste to generate this file as formatting can wrap
some command lines. For example:
/usr/bin/openssl req -newkey rsa:1024 -sha1 -keyout
rootkey.pem -out rootreq.pem -config root.cnf -passout
pass:NETGEAR
should appear on a single line in the shell script.

Certificate Generation Scripts

Application Note: Configuring and Enabling Management Security
Certificate Generation Scripts
v1.0, February 2006
Appendix A
-f rsa2.key -C '' -N ''
-f dsa.key
-C '' -N ''
A-1

Advertisement

Table of Contents
loading

Table of Contents