L
L
lovesuper2014-02-28 22:30:15
Flask
lovesuper, 2014-02-28 22:30:15

Flask + HTTPS. How to check the presence and authenticity of an incoming connection certificate?

What is available:
there are two applications that sit on https. One sends data to the other by POST to a specific url. In the second application, we accept a request and try to understand what kind of certificate is hidden behind this very request. Can this be organized somehow? Tired already. And I tried it this way and that. And I googled only the ability to check the certificate by host name. And I would like to directly on the socket created by Flask.
Please help me figure it out, or at least tell me that this is impossible!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxaon, 2014-03-01
@maxaon

You need to check the certificate signature on the client (the one who sends the request). This is done using the library with which you send the request to the server. For request .
If you are using certificate authorization, then see the documentation: standard for user validation and possibly SSL-specific.
And what does Flask have to do with it, it’s not very clear, it doesn’t seem to have an HTTP request module.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question