简体   繁体   English

如何在Android上创建压缩的SSL / TLS连接

[英]how to create compressesed SSL/TLS connection on android

i want to have an https connection to the server, but in order to conserve bandwidth i want it to be compressed. 我想与服务器建立https连接,但是为了节省带宽,我希望将其压缩。 I heard that some SSL implementations support compression (i dont mean the zlib encoding of the HTTP payload itself), can it be activated in android? 我听说有些SSL实现支持压缩(我不是说HTTP有效负载本身的zlib编码),可以在android中激活吗? i couldnt find any reference to it neither in javax.net.ssl.HttpsURLConnection nor in javax.net.ssl.SSLServerSocketFactory 我在javax.net.ssl.HttpsURLConnection和javax.net.ssl.SSLServerSocketFactory中都找不到对它的任何引用

SSL and TLS were defined so as to include a compression feature, but it isn't supported in Java JSSE, ie javax.net.ssl.* , at least in Oracle's implementation. SSL和TLS被定义为包括压缩功能,但是Java JSSE不支持它,即javax.net.ssl.* ,至少在Oracle的实现中不支持。 Use zip-encoding. 使用zip编码。 The zip-encoding happens to the plaintext content, then SSL is applied over that. zip编码发生在纯文本内容上,然后对其应用SSL。

EDIT Not supported by default in anything else except OpenSSL either as of date. 编辑默认情况下,除OpenSSL之外,其他任何日期默认情况下都不支持。 ' conservative implementations do not enable compression at the TLS level' “保守的实现无法在TLS级别启用压缩”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM