22 lines
425 B
Python
22 lines
425 B
Python
from flask import Flask, request, Response
|
|
from cryptography import x509
|
|
from cryptography.x509 import ocsp
|
|
from cryptography.hazmat.primitives import hashes
|
|
from cryptography.hazmat.primitives.serialization import Encoding
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route("/ocsp", methods=["POST"])
|
|
def ocsp_endpoint():
|
|
return "thank you"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(
|
|
host="0.0.0.0",
|
|
port=5000,
|
|
debug=False
|
|
)
|
|
|
|
|