增加OCSP Stapling功能

This commit is contained in:
GoEdgeLab
2022-03-10 11:55:09 +08:00
parent 3a546b626d
commit 366947d34f
3 changed files with 14 additions and 1 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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>