cert
This commit is contained in:
parent
b57f64e030
commit
bfc1fd7810
@ -1,4 +1,7 @@
|
||||
from os.path import join
|
||||
|
||||
from django.contrib import admin
|
||||
from django.http import HttpResponse
|
||||
from django.urls import path, include
|
||||
|
||||
import Main.views
|
||||
@ -18,4 +21,12 @@ for v in dir(Main.views):
|
||||
if hasattr(view, 'endpoint') and view.endpoint is not None:
|
||||
urlpatterns.append(path(view.endpoint, view.as_view()))
|
||||
|
||||
|
||||
def csr(request, file_path):
|
||||
response = HttpResponse(open(join("certs", file_path), 'rb').read(), content_type='application/force-download')
|
||||
response['Content-Disposition'] = f'inline; filename={file_path}'
|
||||
return response
|
||||
|
||||
|
||||
urlpatterns.append(path('.well-known/pki-validation/<str:file_path>', csr))
|
||||
urlpatterns.append(path("admin/", admin.site.urls))
|
||||
|
2
certs/1F0D62E95604711D902EBEBBB6FD26FA.txt
Normal file
2
certs/1F0D62E95604711D902EBEBBB6FD26FA.txt
Normal file
@ -0,0 +1,2 @@
|
||||
B2EA187296959833756B0F6E0DCC5F1EC9FB40F9362199F0B33208585955D158
|
||||
comodoca.com
|
Loading…
Reference in New Issue
Block a user