Closed lukebakken closed 7 years ago
@lukebakken while sampling around 5 or so certificates in the wild, we observed that all of them specified keyEncipherment
and digitalSignature
. I don't really have a clue what I'm talking about, but I thought it would be worth mentioning.
That's good to know. I think people must err on the side of more keyUsage
attributes to avoid issues like this.
There is a relevant change in Erlang/OTP 21.0 that explains some of the filtering logic applied and expected/implied by a couple of relevant RFCs.
@michaelklishin that's a great find.
If the
keyUsage
extension is specified, this code unhelpfully filters out cipher suites unless bothkeyEncipherment
anddigitalSignature
are present. This might be a bug in OTP, but ensuring both values are present inkeyUsage
will prevent this issue from happening in an Erlang SSL/TLS environment