XWIKI-9577: Improve Crypto API for full PKI support

Fix dependency