pam_rsa keypair generator

VM Kari

Mar 30 2006

Version 0.8-5

pamrsakp - generate keypairs for pam_rsa PAM-authentication module

Table of Contents

Synopsis

pamrsakp user hostname pubdir privdir hashtype usepassphrase

Description

The pamrsakp is a utility script for creating RSA keypairs that can be used with the pam_rsa PAM-authentication module.

Arguments

All six arguments are required.

Examples

Issuing a command:

pamrsakp spock startrek.example.com /safedir/pub /safedir/priv sha1 yes

creates an RSA keypair for user spock. The public key is to be stored on host startrek.example.com. User spock would presumably use a USB memory stick (or other portable media) to store the corresponding RSA private key. Private key's filename is based on a SHA1 hash, and the private key itself is encrypted with a passphrase.

Files

/etc/security/pamrsakp.cnf
pamrsakp's OpenSSL defaults

Notes

This script requires bash and will probably explode if any other shell is used

See also

pam_rsa(8)

Author

Vesa-Matti Kari
email: pamrsa-bugs@laamanaama.helsinki.fi