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