GitHub repository: raphael/rightcert
Description: Small ruby library for simple X.509 certificate generation and signature. Allows signing and/or encrypting data using PKCS7.