dragonresearch / rpki.net

Dragon Research Labs rpki.net RPKI toolkit
54 stars 30 forks source link

exception thrown during rpkic extract_root_certificate #814

Closed sraustein closed 8 years ago

sraustein commented 8 years ago

Did a fresh install of the rpki-ca package and ran the following:

{{{

rpkic initialize

rpkic configure_root

rpkic configure_publication_client ...

rpkic configure_respository ...

rpkic extract_root_certificate

}}}

The last command threw and exception (I was using the VirtualBox console so I only have a screenshot, which I can upload if need be). The exception occurs in the base64 encoder called at line 300 in rpki/x509.py because kw[name] is None.

The subsequent time I ran the command a few minutes later it worked.

Suspect that the rpkid timer had not gone off and completely set everything up?

Trac ticket #808 component rpkid priority minor, owner sra, created by melkins on 2016-04-26T18:22:23Z, last modified 2016-04-26T22:58:05Z

sraustein commented 8 years ago

Yeah, the underlying Zookeeper method isn't handling missing certificate properly.

Should return (None, None) and let the UI apologize to the user.

Trac comment by sra on 2016-04-26T22:42:35Z

sraustein commented 8 years ago

In [changeset:"6393" 6393]: {{{

!CommitTicketReference repository="" revision="6393"

Handle non-existant root certificate correctly in rpkic extractroot* commands. Fixes #808. }}}

Trac comment by sra on 2016-04-26T22:58:05Z

sraustein commented 8 years ago

Closed with resolution fixed