Skip to content

Commit

Permalink
Check for locally derived known compromised RSA keys
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#223.
  • Loading branch information
iay committed Sep 16, 2021
1 parent 6f2a315 commit e5ab456
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
30 changes: 30 additions & 0 deletions mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,31 @@
<bean id="check_owner" parent="ukf.EntityOwnerCheckingStage"
p:members-ref="uk_members"/>

<!--
compromised.ukf
Check against UKf-specific list of compromised RSA keys.
-->
<bean id="compromised.ukf" parent="mda.X509RSAOpenSSLBlacklistValidator"
p:id="compromised.ukf">
<property name="blacklistResource">
<bean parent="FileSystemResource" c:_="${blocklists.dir}/compromised-keys.txt"/>
</property>
</bean>

<!--
check_ukf_compromised
Validation bean which just checks against the UKf-specific list of compromised RSA keys.
-->
<bean id="check_ukf_compromised" parent="mda.X509ValidationStage">
<property name="validators">
<list>
<ref bean="compromised.ukf"/>
</list>
</property>
</bean>

<!--
check_uk_keydesc_key
-->
Expand Down Expand Up @@ -425,6 +450,11 @@
Again, don't need to check for keys below our minimum key size.
-->
<ref bean="compromised.2048"/>

<!--
Check against UKf-specific list of compromised RSA keys.
-->
<ref bean="compromised.ukf"/>
</list>
</property>
</bean>
Expand Down
5 changes: 5 additions & 0 deletions mdx/uk/edugain-policy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@
-->
<ref bean="check_hasreginfo"/>

<!--
Checks against the UKf-specific list of compromised RSA keys.
-->
<ref bean="check_ukf_compromised"/>

</list>
</property>
</bean>
Expand Down

0 comments on commit e5ab456

Please sign in to comment.