Crypt::DSA::GMP::Key::SSH2 - Read/write DSA SSH2 files
use Crypt::DSA::GMP::Key; my $key = Crypt::DSA::GMP::Key->new( Type => 'SSH2', ...); $key->write( Type => 'SSH2', ...);
Crypt::DSA::GMP::Key::SSH2 provides an interface for reading and writing DSA SSH2 files, using Data::Buffer, which provides functionality for SSH-compatible binary in/out buffers.
Currently encrypted key files are not supported.
You shouldn't use this module directly. As the SYNOPSIS above suggests, this module should be considered a plugin for Crypt::DSA::GMP::Key, and all access to SSH2 files (reading DSA keys from disk, etc.) should be done through that module.
Read the Crypt::DSA::GMP::Key documentation for more details.
Returns the appropriate serialization blob of the key.
Given an argument hash containing Content and Password, this unpacks the serialized key into the self object.
This doesn't handle data produced by OpenSSH. To see the data from a DSA key in their format:
cat file.dsa | grep -v -- ----- | tr -d '\n' | base64 -d | \ openssl asn1parse -inform DER
So we will need Convert::ASN1 to handle this.
See Crypt::DSA::GMP for author, copyright, and license information.
To install Crypt::DSA::GMP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::DSA::GMP
CPAN shell
perl -MCPAN -e shell install Crypt::DSA::GMP
For more information on module installation, please visit the detailed CPAN module installation guide.