tomcat - https 检查服务器

标签 tomcat https

我在 azure 上部署了一个 tomcat 服务器,它有我的 REST API。到目前为止,我使用 HTTP 从我的 android 应用程序联系服务器并获得响应。今天,我向服务器添加了一个自签名证书,当我使用 android 应用程序(通过将 URL 更改为 https)进行测试时,一切正常。但是,我想确认响应是否真的被加密了。我该如何检查?

最佳答案

命令

curl -k -v https://github.com/corvusoft/restbed

输出

* Hostname was NOT found in DNS cache
*   Trying 192.30.252.129...
* Connected to github.com (192.30.252.129) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
* Server certificate: github.com
* Server certificate: DigiCert SHA2 Extended Validation Server CA
* Server certificate: DigiCert High Assurance EV Root CA
> GET /corvusoft/restbed HTTP/1.1
> User-Agent: curl/7.37.1
> Host: github.com
> Accept: */*
> 
< HTTP/1.1 200 OK
* Server GitHub.com is not blacklisted
< Server: GitHub.com
...

可以找到 Curl 文档 here

-k, --insecure

(SSL) This option explicitly allows curl to perform "insecure" SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default. This makes all connections considered "insecure" fail unless -k, --insecure is used.


-v, --verbose

Be more verbose/talkative during the operation. Useful for debugging and seeing what's going on "under the hood". A line starting with '>' means "header data" sent by curl, '<' means "header data" received by curl that is hidden in normal cases, and a line starting with '*' means additional info provided by curl.

关于tomcat - https 检查服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31088242/

相关文章:

java - 由于循环依赖,Tomcat 容器无法启动

eclipse - 如何在 Eclipse 中使用 Tomcat 8?

rest - Azure HTTPS POST 和 GET

javascript - 浏览 https protected 网站时出现问题

web - CLoudflare 页面规则 : force SSL except specified URL pattern?

node.js - nodejs 中的 https 错误?

java - Java/Tomcat 服务器的最佳 Comet/Push 技术?

rest - 如何在应用服务器集群上运行系统范围的操作?

java - Tomcat 7.0.54 JVM 崩溃

Nginx - 添加 server_name 后,所有 url 都显示 404