---
# System prepended metadata

title: '[java]tomcat如何關閉TLS1.0'
tags: [Java, Tomcat]

---

# [java]tomcat如何關閉TLS1.0

###### tags: `Java` `Tomcat`
1. 開tomcat的server.xml
2. 找到
```xml
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
 maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
 clientAuth="false" sslProtocol="TLS" />
```
3. 在裡面加一個屬性，限定只有TLS1.2和1.1
`sslEnabledProtocols="TLSv1.2,TLSv.1.1"`