Re: How to use publickey from x509 certificate?

From: Tanja Wittke (tawi_at_gruft.de)
Date: 07/09/04

  • Next message: Damien Miller: "Re: How to use publickey from x509 certificate?"
    Date: Fri, 9 Jul 2004 02:14:27 +0200
    To: Damien Miller <djm@mindrot.org>
    
    

    Hello,

    On Thu, Jul 08, 2004 at 10:19:42PM +1000, Damien Miller wrote:
    > The public key is easy to extract:
    >
    > $ openssl x509 -pubkey -noout -in newcert.pem
    > -----BEGIN PUBLIC KEY-----
    > MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCiax2Tn3aXOVOqSw5EP+Hc+Euy
    > hyfm5XxYFFhCI8KOw9UcUZ5uaZ4u+hca8DlM6vrP4GnU1f8RQK77D/uLRrwGb+5k
    > X0In4/sbSipOG3mxnPN9LC5gS06t1JSbOwhWbGECtWwbYCz0XF/HsFf5gP06Sexa
    > aYMN/isaJQjBSXBECQIDAQAB
    > -----END PUBLIC KEY-----

    Yes, but that's not what I meant. A ssh RSA public key looks like

    ssh-rsa <key blob> optional comment

    But I think this key blob isn't the complete key (modulus,exponent)
    extracted from the certificate. Maybe just the modulus? Or is there
    something else I don't see about the ssh RSA public key structure?

    Thank you,

    tawi


  • Next message: Damien Miller: "Re: How to use publickey from x509 certificate?"

    Relevant Pages

    • [Full-disclosure] Announce - Release RFIDIOt ver 0.1n (June 2007)
      ... extract image from CBEFF block in EF.DG2 ... The other major enhancement is extraction of public key certificates ... Here is example output of the extraction process on a UK passport: ... Signature Algorithm: sha256WithRSAEncryption ...
      (Full-Disclosure)
    • Announce - Release RFIDIOt ver 0.1n (June 2007)
      ... extract image from CBEFF block in EF.DG2 ... The other major enhancement is extraction of public key certificates from the Security Object. ... Here is example output of the extraction process on a UK passport: ... Signature Algorithm: sha256WithRSAEncryption ...
      (Bugtraq)
    • RE: SN.EXE and Exported Public Keys
      ... public/private key pair against the public key that was extracted from the ... sn -p privatepair.snk publickey.snk - Extract only the public portion of the ... sn -tp publickey.snk - use SN.exe to display public key and public key token ...
      (microsoft.public.dotnet.framework)
    • Extracting an X509Certificate from XML
      ... I have a SOAP envelope digitally signed and including an X509 certificate. ... I'd like to verify the signature using the public key from the certificate but cannot work out how to get the public key in my KeySelector implementation ... The above XML is loaded into a org.w3c.dom.Document, I can extract the BinarySecurityToken into a org.w3c.dom.Node and get at the BASE64 data using getTextContentbut I can't work out how to extract a java.security.PublicKey from it. ...
      (comp.lang.java.security)
    • Re: nologin hole?
      ... > Maybe this result my paranoya. ... Very posible You can extract use from this. ... Public key also encoded with outguess on http://rikrose.net ... with "unsubscribe freebsd-security" in the body of the message ...
      (FreeBSD-Security)