• Breaking News

    Friday, June 1, 2018

    Cryptography Converting Private Key from OS X Keychain hex dump to PEM

    Cryptography Converting Private Key from OS X Keychain hex dump to PEM


    Converting Private Key from OS X Keychain hex dump to PEM

    Posted: 31 May 2018 05:24 PM PDT

    I was trying to extract an un-exportable key from OS X Keychain. I used this tool to extract the key. The tool gives me a hexdump of the private key. An RSA 2048 bit key came out to be 2441 bits, after extracting through the tool.

    The problem is, I can't figure out what format the key is in, to convert it to PEM/DER or any standard format.

    After extraction, it looks like this:

    [+] Private Key Record [-] PrintName: <name> [-] Label <hexdump> j... [-] Key Class : CSSM_KEYCLASS_PRIVATE_KEY [-] Private : 0 [-] Key Type : CSSM_ALGID_RSA [-] Key Size : 2048 bits [-] Effective Key Size : 2048 bits [-] Extracted : 0 [-] CSSM Type : Core CSP (local space) [-] Key Name <hexdump> [-] Decrypted Private Key <hexdump> 

    Does anyone know what format this private key is in? And/or how to convert it to an OpenSSL format?

    EDIT: Apologies if this is the wrong sub, please feel free to redirect me, in that case.

    submitted by /u/raghotham
    [link] [comments]

    No comments:

    Post a Comment