Giter Site home page Giter Site logo

eduardoschmeller / clojure-ssl-cert-auth Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

This Clojure code provides functions for working with SSL certificates, allowing the creation of an SSL context from a P12 certificate file and the creation of an SSL engine from that context.

Clojure 100.00%

clojure-ssl-cert-auth's Introduction

SSL Clojure

This Clojure code provides functions for working with SSL certificates, allowing the creation of an SSL context from a P12 certificate file and the creation of an SSL engine from that context.

Features

  • p12-cert->ssl-context: Transforms an InputStream providing a P12 certificate into an SSL context.
  • generate-ssl-context: Builds an SSL context from a given certificate file path.
  • create-ssl-engine: Builds an SSL engine from a given SSL context.

Usage

To use this code, you need to have a P12 certificate file available. You can then call the create-ssl-engine function passing the result of the generate-ssl-context function, which in turn uses the p12-cert->ssl-context function.

(create-ssl-engine (generate-ssl-context "/path/to/your/certificate/file.p12"))

Make sure to replace "/path/to/your/certificate/file.p12" with the correct path to your P12 certificate file.

Glossary

  • P12: File format that contains a digital certificate and its private key.
  • SSL (Secure Sockets Layer): Security protocol that provides secure communications over the internet.
  • SSL Context: Object that holds security information, such as certificates and keys, needed to establish an SSL connection.
  • SSL Engine: Implementation of a security mechanism that handles SSL communication.

clojure-ssl-cert-auth's People

Contributors

eduardoschmeller 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.