Giter VIP home page Giter VIP logo

x509-cms-sec's Introduction

Overview

This C++ program leverages OpenSSL to perform cryptographic operations, focusing on verifying digital signatures. It supports CMS (Cryptographic Message Syntax) signature verification, decoding certificates and CRLs (Certificate Revocation Lists) in PEM and DER formats, and validating certificates against trusted ones.

Dependencies

  • OpenSSL: Required for cryptographic functionalities.

Features

  • Signature Verification: Verifies CMS signatures against a certificate chain.
  • Certificate and CRL Decoding: Decodes in both PEM and DER formats.
  • Certificate Validation: Checks against trusted certificates, revocation, and expiration.
  • Dynamic Signature and Certificate Handling: Includes functionalities to add signer certificates to signatures, manage certificate chains, and work with certificate revocation lists effectively.
  • Utility Functions: Provides a suite of utility functions for certificate information retrieval, including issuer and subject details, serial number, validity period, revocation status, and more.

Usage

Compile and run the program as follows:

> g++ -o verify_signatures verify_signatures.cpp -lssl -lcrypto

Run the program by executing the compiled binary, passing the required arguments for the specific operation you wish to perform.

Security Note

This tool is intended for educational and testing purposes. Users should be aware of the security implications of digital signature verification and certificate handling in production environments. Proper understanding and cautious handling of cryptographic materials are advised.

Warnings

  • It works with .pem or .der but the input must be of uint8/unsigned char.
  • There are tools for P7B and P7C decoding a certificate extraction.
  • The code is not memory safe, and should be handled with care.
  • It was originally design to work with a FFI from Dart.

x509-cms-sec's People

Contributors

martinsty avatar medalha01 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.