Re: Using Crypt::DSA



A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Any of the key attributes can be accessed through combination get/set
> methods. The key attributes are: p, q, g, priv_key, and pub_key. For
> example:
>
> $key->p($p);
> my $p2 = $key->p;
> ...
>
> So, I would try
>
> printf "Public key: %s\n", $key->pub_key;
>
> to print the public key.
>
> Sinan

Sinan,

I had already tried that and, indeed, it might be technically
correct. But what I really want is an output file that is ASN.1
encoded and in a standard PEM key format, which is what you get
when you use the key->write method. It's just that the latter
seems to give only a private key file (which may actually include
the public key, but that's just speculation on my part).

Mike

.



Relevant Pages

  • Re: Using Crypt::DSA
    ... >> Any of the key attributes can be accessed through combination get/set ... > seems to give only a private key file (which may actually include ... > the public key, but that's just speculation on my part). ... Sinan ...
    (comp.lang.perl.misc)
  • Re: Using Crypt::DSA
    ... > the public key, but that's just speculation on my part). ... It demonstrates that the pem file does indeed hold ... both public and private key information (by extracting that and other ...
    (comp.lang.perl.misc)
  • Re: openssh client ignores public key authentication
    ... > from HPUX 10.20 via public key. ... This indicates that OpenSSH fails to load the *public* key. ... happen if you have the private key file id_rsa, ... along with the private key, or in id_rsa.pub. ...
    (comp.security.ssh)
  • Re: BIG BIG PROBLEM OPENSSH PUBLIC KEY AUTH NOT WORKING
    ... than i am renaming ... This is nonsense. ... If you copy a private key file ... to a public key filename how can you expect to get it to work? ...
    (comp.security.ssh)