Adapt to new cert storage API.