Re: Using Crypt::DSA
- From: Mike Friedman <mikef@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 21 Aug 2005 23:15:14 +0000 (UTC)
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
.
- Follow-Ups:
- Re: Using Crypt::DSA
- From: Sisyphus
- Re: Using Crypt::DSA
- From: A. Sinan Unur
- Re: Using Crypt::DSA
- References:
- Using Crypt::DSA
- From: Mike Friedman
- Re: Using Crypt::DSA
- From: A. Sinan Unur
- Using Crypt::DSA
- Prev by Date: Re: Using Crypt::DSA
- Next by Date: Re: Using Crypt::DSA
- Previous by thread: Re: Using Crypt::DSA
- Next by thread: Re: Using Crypt::DSA
- Index(es):
Relevant Pages
|