mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 14:50:25 +08:00
增加OCSP Stapling功能
This commit is contained in:
@@ -143,6 +143,7 @@ func (this *IndexAction) RunPost(params struct {
|
|||||||
MinVersion: sslPolicy.MinVersion,
|
MinVersion: sslPolicy.MinVersion,
|
||||||
SslCertsJSON: certsJSON,
|
SslCertsJSON: certsJSON,
|
||||||
HstsJSON: hstsJSON,
|
HstsJSON: hstsJSON,
|
||||||
|
OcspIsOn: sslPolicy.OCSPIsOn,
|
||||||
ClientAuthType: types.Int32(sslPolicy.ClientAuthType),
|
ClientAuthType: types.Int32(sslPolicy.ClientAuthType),
|
||||||
ClientCACertsJSON: clientCACertsJSON,
|
ClientCACertsJSON: clientCACertsJSON,
|
||||||
CipherSuitesIsOn: sslPolicy.CipherSuitesIsOn,
|
CipherSuitesIsOn: sslPolicy.CipherSuitesIsOn,
|
||||||
@@ -158,6 +159,7 @@ func (this *IndexAction) RunPost(params struct {
|
|||||||
MinVersion: sslPolicy.MinVersion,
|
MinVersion: sslPolicy.MinVersion,
|
||||||
SslCertsJSON: certsJSON,
|
SslCertsJSON: certsJSON,
|
||||||
HstsJSON: hstsJSON,
|
HstsJSON: hstsJSON,
|
||||||
|
OcspIsOn: sslPolicy.OCSPIsOn,
|
||||||
ClientAuthType: types.Int32(sslPolicy.ClientAuthType),
|
ClientAuthType: types.Int32(sslPolicy.ClientAuthType),
|
||||||
ClientCACertsJSON: clientCACertsJSON,
|
ClientCACertsJSON: clientCACertsJSON,
|
||||||
CipherSuitesIsOn: sslPolicy.CipherSuitesIsOn,
|
CipherSuitesIsOn: sslPolicy.CipherSuitesIsOn,
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ func (this *IndexAction) RunPost(params struct {
|
|||||||
MinVersion: sslPolicy.MinVersion,
|
MinVersion: sslPolicy.MinVersion,
|
||||||
SslCertsJSON: certsJSON,
|
SslCertsJSON: certsJSON,
|
||||||
HstsJSON: hstsJSON,
|
HstsJSON: hstsJSON,
|
||||||
|
OcspIsOn: sslPolicy.OCSPIsOn,
|
||||||
ClientAuthType: types.Int32(sslPolicy.ClientAuthType),
|
ClientAuthType: types.Int32(sslPolicy.ClientAuthType),
|
||||||
ClientCACertsJSON: clientCACertsJSON,
|
ClientCACertsJSON: clientCACertsJSON,
|
||||||
CipherSuitesIsOn: sslPolicy.CipherSuitesIsOn,
|
CipherSuitesIsOn: sslPolicy.CipherSuitesIsOn,
|
||||||
@@ -143,6 +144,7 @@ func (this *IndexAction) RunPost(params struct {
|
|||||||
MinVersion: sslPolicy.MinVersion,
|
MinVersion: sslPolicy.MinVersion,
|
||||||
SslCertsJSON: certsJSON,
|
SslCertsJSON: certsJSON,
|
||||||
HstsJSON: hstsJSON,
|
HstsJSON: hstsJSON,
|
||||||
|
OcspIsOn: sslPolicy.OCSPIsOn,
|
||||||
ClientAuthType: types.Int32(sslPolicy.ClientAuthType),
|
ClientAuthType: types.Int32(sslPolicy.ClientAuthType),
|
||||||
ClientCACertsJSON: clientCACertsJSON,
|
ClientCACertsJSON: clientCACertsJSON,
|
||||||
CipherSuitesIsOn: sslPolicy.CipherSuitesIsOn,
|
CipherSuitesIsOn: sslPolicy.CipherSuitesIsOn,
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ Vue.component("ssl-config-box", {
|
|||||||
hsts: null,
|
hsts: null,
|
||||||
cipherSuitesIsOn: false,
|
cipherSuitesIsOn: false,
|
||||||
cipherSuites: [],
|
cipherSuites: [],
|
||||||
http2Enabled: true
|
http2Enabled: true,
|
||||||
|
ocspIsOn: false
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (policy.certRefs == null) {
|
if (policy.certRefs == null) {
|
||||||
@@ -498,6 +499,14 @@ Vue.component("ssl-config-box", {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<!-- OCSP -->
|
||||||
|
<tr>
|
||||||
|
<td>OCSP Stapling</td>
|
||||||
|
<td><checkbox name="ocspIsOn" v-model="policy.ocspIsOn"></checkbox>
|
||||||
|
<p class="comment">选中表示启用OCSP Stapling。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<!-- 客户端认证 -->
|
<!-- 客户端认证 -->
|
||||||
<tr>
|
<tr>
|
||||||
<td>客户端认证方式</td>
|
<td>客户端认证方式</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user