Skip to content

Commit

Permalink
Enforce 2048-bit RSA key minimum on UKf-registered entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Dec 12, 2013
1 parent a348ec9 commit cb9cf09
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
21 changes: 15 additions & 6 deletions mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -424,17 +424,26 @@
p:id="checkCertificates">
<property name="validators">
<list>
<!-- Error on RSA key length less than 1024 bits. -->
<!-- Error on RSA key length less than 2048 bits. -->
<bean parent="X509CertificateRSAKeyLengthValidator"
p:warningBoundary="0" p:errorBoundary="1024"/>
p:warningBoundary="0" p:errorBoundary="2048"/>
<!-- Error on small RSA public exponents. -->
<bean parent="X509CertificateRSAExponentValidator"/>
<!-- Debian weak key blacklists. -->
<ref bean="debian.1024"/>

<!--
Debian weak key blacklists.
Don't need to check for keys below our minimum key size.
-->
<ref bean="debian.2048"/>
<ref bean="debian.4096"/>
<!-- Compromised key blacklists. -->
<ref bean="compromised.1024"/>

<!--
Compromised key blacklists.
Again, don't need to check for keys below our minimum key size.
This currently means there are no compromised keys to check for.
-->
</list>
</property>
</bean>
Expand Down
20 changes: 13 additions & 7 deletions mdx/uk/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,6 @@
p:id="checkCertificates">
<property name="validators">
<list>
<!-- Error on RSA key length less than 2048 bits. -->
<bean parent="X509CertificateRSAKeyLengthValidator"
p:warningBoundary="0" p:errorBoundary="2048"/>
<!-- Error on inconsistent subjectAltNames. -->
<bean parent="X509CertificateConsistentNameValidator"/>
</list>
Expand Down Expand Up @@ -312,12 +309,21 @@
<bean parent="X509CertificateRSAExponentValidator"/>
<!-- Error on inconsistent subjectAltNames. -->
<bean parent="X509CertificateConsistentNameValidator"/>
<!-- Debian weak key blacklists. -->
<ref bean="debian.1024"/>

<!--
Debian weak key blacklists.
Don't need to check for keys below our minimum key size.
-->
<ref bean="debian.2048"/>
<ref bean="debian.4096"/>
<!-- Compromised key blacklists. -->
<ref bean="compromised.1024"/>

<!--
Compromised key blacklists.
Again, don't need to check for keys below our minimum key size.
This currently means there are no compromised keys to check for.
-->
</list>
</property>
</bean>
Expand Down

0 comments on commit cb9cf09

Please sign in to comment.