writing certificates generated by X509V1CertificateGenerator

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

writing certificates generated by X509V1CertificateGenerator

Joel-2
I'm wondering how to interpret things when I use System.out.println()
to print a test certificate to the terminal:

X509V1CertificateGenerator myCertGen = new X509V1CertificateGenerator();
[...]
Certificate myDSACert = myCertGen.generateX509Certificate( myDSAPair.getPrivate() );
                        System.out.println( myDSACert );

  [0]         Version: 1
         SerialNumber: 488261
             IssuerDN: C=JP,ST=Hyogo,L=Amagasaki,O=零石研究,OU=認証部,CN=attestations.reiisi.jp/emailAddress=[hidden email]
           Start Date: Wed Jun 01 20:10:07 JST 2005
           Final Date: Thu Jun 01 20:10:07 JST 2006
            SubjectDN: C=JP,ST=Hyogo,L=Kobe,O=digitcom inc.,OU=Attestations Dept.,CN=attestations.ddcom.co.jp/emailAddress=[hidden email]
           Public Key: DSA Public Key
            y: ba1a7ccd2046ab[...]
 
  Signature Algorithm: DSA
            Signature: 302[...]
 

In particular, I'm wondering what that lone y: followed by what looks
like a key is supposed to be. It doesn't seem to match anything from the
KeyPair I used when generating the certificate.


--
Joel Rees   <[hidden email]>
digitcom, inc.   株式会社デジコム
Kobe, Japan   +81-78-672-8800
** <http://www.ddcom.co.jp> **


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: writing certificates generated by X509V1CertificateGenerator

Joel-2
Thomas  wrote offline,

> Hi,
>
> what you exact question?

What, indeed. I looked back at where I had printed out the public key,
and I found my y parameter:

Public: Sun DSA Public Key
    Parameters:
   p:
    fd7f5381 [...]
    q:
    9760508f [...]
    g:
    f7e1a085 [...]
 
  y:
    f22b87a1 [...]
[...]
  [0]         Version: 1
         SerialNumber: 488261
             IssuerDN: C=JP,ST=Hyogo,L=Amagasaki,O=零石研究,OU=認証部,CN=attestations.reiisi.jp/emailAddress=[hidden email]
           Start Date: Fri Jun 03 14:47:16 JST 2005
           Final Date: Sat Jun 03 14:47:16 JST 2006
            SubjectDN: C=JP,ST=Hyogo,L=Kobe,O=digitcom inc.,OU=Attestations Dept.,CN=attestations.ddcom.co.jp/emailAddress=[hidden email]
           Public Key: DSA Public Key
            y: f22b87a1 [...]

It's the y parameter of the public key as I should expect it to be.
Don't know why I missed that before. Probably would have helped if I had
pasted more of the output in before I hit the send button. :-(

Sorry for the noise.

The formatting does seem a little odd, though, what with the colons not
lining up on the y parameters. Is there any particular reason for the
colons not lining up?

> [...]

--
Joel Rees   <[hidden email]>
digitcom, inc.   株式会社デジコム
Kobe, Japan   +81-78-672-8800
** <http://www.ddcom.co.jp> **


Loading...