Git Product home page Git Product logo

Comments (3)

s-u avatar s-u commented on August 22, 2024

That is not a valid RSA public key:

$ openssl asn1parse -in test.pem
    0:d=0  hl=3 l= 159 cons: SEQUENCE          
    3:d=1  hl=2 l=  13 cons: SEQUENCE          
    5:d=2  hl=2 l=   9 prim: OBJECT            :rsaEncryption
   16:d=2  hl=2 l=   0 prim: NULL              
   18:d=1  hl=3 l= 141 prim: BIT STRING        

As you an see it's actually a X.509 SubjectPublicKeyInfo key with the wrong header. If you remove RSA from the header it works just fine:

> PKI::PKI.load.key(gsub(" RSA","",key))
<pointer: 0x7fb18a102270>
attr(,"class")
[1] "public.key"

from pki.

s-u avatar s-u commented on August 22, 2024

BTW: have a look at KeyNotes in the wiki - it has more on keys and formats: https://github.com/s-u/PKI/wiki/KeyNotes

from pki.

hadley avatar hadley commented on August 22, 2024

Thanks! That key came from the travis API :(

from pki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.