How can I enroll a certificate that I could use as the host identity of a Tectia SSH server?
asked Dec 22 '10 at 20:30
SSH KB ♦
The host certificates used in SSH Tectia Server authentication must have a fully qualified domain name as the subject alternative name and the client must connect to this host or the server authentication will fail.
ssh-cmpclient can be used to enroll or update certificates from a CA that supports CMPv2 protocol.Example
To generate a new ssh2 private key "hostcert" and enroll certificate from Test CA 3 at pki.ssh.com using preshared key "62154:ssh":
ssh-cmpclient-g3 initialize -P generate://ssh2@rsa:2048/hostcert -o hostcert -p 62154:ssh -s "C=country,O=organization,CN=hostname;DNS=hostname.company.com" -S socks://fw/ http://pki.ssh.com:8080/pkix/ "C=FI, O=SSH Communications Security Corp, CN=SSH Test CA 3 No Liabilities"
After successful enrollment private key is saved to file hostcert.prv and certificate to file hostcert-0.crt.
Remember to use ssh-keygen-g3 to convert the private key from X.509 format to SSH2 format:
ssh-keygen-g3 -x hostcert.prv hostcert.prv_ssh2
answered Dec 22 '10 at 20:38
SSH KB ♦