CMS and X.509 library