tls

Failed to connect to www.googleapis.com port 443: Network unreachable

匿名 (未验证) 提交于 2019-12-03 02:01:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to implement google sign-in in my website that is written in Symfony2 using Google Client API . I followed the instructions here , but when I call $client->authenticate($code); command an exception is thrown telling that: Failed to connect to www.googleapis.com port 443: Network unreachable What is the problem? 回答1: Solution 2 (from update). it seems to be some bug with ipv6 interfaces and curl with php, so another solution is to set the appropiate option in curl function to connect to the remote server with ipv4 in your php

docker login not working with nexus 3 private registry

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Nexus UI Config I am running Nexus Repository Manager OSS 3.0.1-01 on a linux VM On that VM, I have nginx working to reserve proxy http requests as https. My SSL key is signed by a trusted CA I created a maven repository, which works without issues, whenever I have a client machine publish to it. Also on this client machine, when I use my docker client, and do a docker login. I am receiving all kinds of errors. I am following these instructions https://books.sonatype.com/nexus-book/3.0/reference/docker.html#_accessing_repositories

mosquitto MQTT broker and Java client with SSL / TLS

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using mosquitto and the Eclipse PAHO Java client. Everything is working fine on plain TCP sockets. but now I want to use SSL for athentication (encryption not necessarily needed). first I followed the instructions from http://mosquitto.org/man/mosquitto-tls-7.html in mosquitto client I can not publish my message without the --insecure option, means i have to mosquitto_pub -h -p -t "/topic1/test" -m "testmsg" --cafile ca_cert.pem --cert client.crt --key client_priv.key --tls-version tlsv1.2 --insecure otherwise an protocol error appears

docker-machine create node without tls verification

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I create a node with docker-machine docker-machine create -d virtualbox node1 it is created with tls verification enabled for docker deamon which made things a bit more of a hassle than normal for swarm. I want to create a node with docker-machine without tls verification for testing purpose. I tried with: docker-machine create -d virtualbox --engine-tls false node1 and docker-machine create -d virtualbox --engine-tls-verify false node1 and docker-machine create -d virtualbox --engine-opt-tls false node1 回答1: try: docker-machine create

When using Java Apache FTPClient for FTP TLS getting “Remote host closed connection during handshake” [duplicate]

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: How to connect to FTPS server with data connection using same TLS session? 3 answers I ran a Java (1.8) program on Windows 10 64x for FTP TLS (org.apache.commons.net.ftp): FTPSClient ftpClient = new FTPSClient(); System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2"); // LISTENER ftpClient.addProtocolCommandListener( new PrintCommandListener(new PrintWriter(System.out), true)); ftpClient.connect(server); ftpClient.login(user, pass); // Enter local passive mode ftpClient.enterLocalPassiveMode(

How to enable TLS 1.2 in Java 7

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to enable TLS 1.2 in my web app which uses JBoss 6.4 and Java 1.7. I have -Dhttp.protocols = TLSv1.2 in my application environment but it doesn't seem to work for me. Is there anything I could do to enable TLS 1.2? I wrote a simple program context = SSLContext.getInstance("TLSv1.2"); context.init(null,null,null); SSLContext.setDefault(context); SSLSocketFactory factory = (SSLSocketFactory)context.getSocketFactory(); SSLSocket socket = (SSLSocket)factory.createSocket(); protocols = socket.getEnabledProtocols(); After running this

TLS connection using SSLSocket is slow in Android OS

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm developing an Android app which uses SSLSocket to connect to a server. This is the code I'm using: // Connect if (socket == null || socket.isClosed() || !socket.isConnected()) { if (socket != null && !socket.isClosed()) socket.close(); Log.i(getClass().toString(), "Connecting..."); if (sslContext == null) { sslContext = SSLContext.getInstance("TLS"); sslContext.init(null, trustAllCerts, new SecureRandom()); } SSLSocketFactory socketFactory = sslContext.getSocketFactory(); socket = (SSLSocket)socketFactory.createSocket(host, port); socket

How to use TLS 1.2 in Java 6

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: It seems that Java 6 supports TLS up to v1.0, is there any way to use TLS 1.2 in Java 6? Maybe a patch or a particular update of Java 6 will have support for it? 回答1: Public Oracle Java 6 releases do not support TLSv1.2. Paid-for releases of Java 6 (post-EOL) might. ( UPDATE - TLSv1.1 is available for Java 1.6 from update 111 onwards; source ) Contact Oracle sales. Other alternatives are: Use an alternative JCE implementation such as Bouncy Castle. Use an IBM Java 6 ... if available for your platform. According to "IBM SDK, Java Technology

How to create iOS NWConnection for TLS with self signed cert?

匿名 (未验证) 提交于 2019-12-03 01:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use Apple's new NWConnection class for my MQTT client. For testing, I need to be able to create a TLS connection to my local test broker, which has a self signed cert. So far, I'm just setting up the connection using: self.connection = NWConnection(host: NWEndpoint.Host("172.16.202.172"), port: NWEndpoint.Port(integerLiteral: 8899), using: .tls) But when I connect, I get the following spewage on my console: 2019-01-30 17:05:51.010580-0800 myAp[2591:608137] [] nw_socket_handle_socket_event [C4.1:1] Socket SO_ERROR [54:

Convert existing TCP socket into TLS using OpenSSL

匿名 (未验证) 提交于 2019-12-03 01:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need some information about OpenSSL, TLS socket. First of i want to made a connection with server through TLS over TCP. Generally first create a TCP socket, then connect to server using the TCP socket, after that convert(before send or receive any data through TCP socket) the TCP socket into TLS. My question is is it possible according to following way? Create TCP socket. Connect with server using TCP socket. Send and receive some data through TCP socket. Then convert the TCP socket into TLS. Note: I am using OpenSSL. 回答1: It seems