forked from alibaba/anyproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcert_download.pug
91 lines (82 loc) · 2.14 KB
/
cert_download.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
doctype html
html(lang="en")
head
title Download rootCA
meta(name='viewport', content='initial-scale=1, maximum-scale=0.5, minimum-scale=1, user-scalable=no')
style.
body {
color: #666;
line-height: 1.5;
font-size: 16px;
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;
}
body * {
box-sizing: border-box;
}
.logo {
font-size: 36px;
margin-bottom: 40px;
text-align: center;
}
.any {
font-weight: 500;
}
.proxy {
font-weight: 100;
}
.title {
font-weight: bold;
margin: 20px 0 6px;
}
.button {
text-align: center;
padding: 4px 15px 5px 15px;
font-size: 14px;
font-weight: 500;
border-radius: 4px;
height: 32px;
margin-bottom: 10px;
display: block;
text-decoration: none;
border-color: #108ee9;
color: rgba(0, 0, 0, .65);
background-color: #fff;
border-style: solid;
border-width: 1px;
border-style: solid;
border-color: #d9d9d9;
}
.primary {
color: #fff;
background-color: #108ee9;
border-color: #108ee9;
}
.more {
text-align: center;
font-size: 14px;
}
.content {
word-break: break-all;
font-size: 14px;
line-height: 1.2;
margin-bottom: 10px;
}
body
.logo
span.any Any
span.proxy Proxy
.title Download:
.content Select a CA file to download, the .crt file is commonly used.
a(href="/fetchCrtFile?type=crt").button.primary rootCA.crt
a(href="/fetchCrtFile?type=cer").button rootCA.cer
.more More
.buttons(style='display: none')
a(href="/fetchCrtFile?type=pem").button rootCA.pem
a(href="/fetchCrtFile?type=der").button rootCA.der
.title User-Agent:
.content #{ua}
script(type='text/javascript').
window.document.querySelector('.more').addEventListener('click', function (e) {
e.target.style.display = 'none';
window.document.querySelector('.buttons').style.display = 'block';
});