Giter VIP home page Giter VIP logo

ocsp-proxy's Introduction

Proxy for OCSP stapling

OCSP stapling means that the SSL server (rather than client) has to make requests to CA servers for revoked certificates lists, making the check faster and more reliable for clients.

If:

  • you're not allowed to connect from your SSL servers to the CA server because of a firewall,
  • and your SSL server allows you to force the URL of the OCSP server
  • but not of a HTTP proxy

then this tool may help you.

Usage

HTTP_PROXY=http://proxy:8888 ./ocsp-proxy -ocsphost ocspserver.com -http :8080

ocsphost=ocspserver.com http=:8080 ./ocsp-proxy

HTTP_PROXY=http://proxy:8888 ocsphost=ocspserver.com http=:8080 ./ocsp-proxy

Il will listen on port 8080 for HTTP request and will forward the request to the ocsphost, using the generic http proxy supplied the Go stdlib way.

In your nginx OCSP stapling configuration, add the line:

ssl_stapling_responder http://127.0.0.1:8080;

(assuming the ocsp-proxy is running on 127.0.0.1 port 8080)

To find out your ocsphost, as far as I know:

openssl x509 -in certificate.crt -noout -text | grep OCSP

(use the domain without scheme)

ocsp-proxy's People

Contributors

dlecorfec avatar huo-ju avatar

Watchers

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