mirror of
https://github.com/NLnetLabs/routinator.git
synced 2024-05-19 06:50:04 +00:00
Merge pull request #195 from NLnetLabs/ignore-router-keys
Ignore router keys
This commit is contained in:
@ -25,6 +25,9 @@ News
|
||||
* Protection against loops in the CA structure: Routinator checks that any
|
||||
subject key identifier only appears once in the chain from a trust
|
||||
anchor to a CA certificate. [(#192)]
|
||||
* Routinator now explicitly skips .cer files that aren’t CA certificates
|
||||
before even trying to validate them. This already happened before
|
||||
because these files failed validation. [(#194)]
|
||||
|
||||
Bug Fixes
|
||||
|
||||
@ -32,6 +35,7 @@ Bug Fixes
|
||||
[(#191)]: https://github.com/NLnetLabs/routinator/pull/191
|
||||
[(#192)]: https://github.com/NLnetLabs/routinator/pull/192
|
||||
[(#193)]: https://github.com/NLnetLabs/routinator/pull/193
|
||||
[(#194)]: https://github.com/NLnetLabs/routinator/pull/194
|
||||
|
||||
|
||||
## 0.5.0 ‘Why Not Try a Holiday in Sweden This Year?’
|
||||
|
@ -14,7 +14,7 @@ use crossbeam_utils::thread;
|
||||
use crossbeam_queue::ArrayQueue;
|
||||
use log::{error, info, warn};
|
||||
use rpki::uri;
|
||||
use rpki::cert::{Cert, ResourceCert, TbsCert};
|
||||
use rpki::cert::{Cert, KeyUsage, ResourceCert, TbsCert};
|
||||
use rpki::crl::{Crl, CrlStore};
|
||||
use rpki::crypto::KeyIdentifier;
|
||||
use rpki::manifest::{Manifest, ManifestContent, ManifestHash};
|
||||
@ -503,6 +503,13 @@ impl<'a> Run<'a> {
|
||||
return
|
||||
}
|
||||
};
|
||||
if cert.key_usage() != KeyUsage::Ca {
|
||||
info!(
|
||||
"{}: probably a router key. Ignoring.",
|
||||
uri
|
||||
);
|
||||
return
|
||||
}
|
||||
if link.check_loop(&cert).is_err() {
|
||||
warn!(
|
||||
"{}: certificate loop detected. Ignoring this CA.",
|
||||
|
Reference in New Issue
Block a user