API has been changed in d1ddf7a6c7 ("[crypto,test] update to new cert/crypto API").
d1ddf7a6c7
Part of #6682