Skip to content

Commit 09e9c40

Browse files
committed
ra-tls: Add KeyCertSign and CrlSign usages for CA cert
1 parent c9840bb commit 09e9c40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ra-tls/src/cert.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ impl<Key> CertRequest<'_, Key> {
258258
}
259259
if let Some(ca_level) = self.ca_level {
260260
params.is_ca = IsCa::Ca(BasicConstraints::Constrained(ca_level));
261+
params.key_usages.push(KeyUsagePurpose::KeyCertSign);
262+
params.key_usages.push(KeyUsagePurpose::CrlSign);
261263
}
262264
if let Some(not_before) = self.not_before {
263265
params.not_before = not_before.into();

0 commit comments

Comments
 (0)