ssl

Force www. and https in nginx.conf (SSL)

孤街醉人 提交于 2020-06-09 12:08:43
问题 After purchasing a SSL certificate I have been trying to force all pages to secured https and to www. https://www.exampl.com is working and secure but only if type it in exactly. www.example.com or example.com are still pointing to http. We use nginx as a proxy and need to input the rewrite there. I have SSH / root access via Putty. I have accessed nginx.conf by inputting into putty. Now what? Do I input the nginx commands on this page? Starting where the cursor is? Any command lines first?

How can I verify my SSL certificate for discord?

为君一笑 提交于 2020-06-09 05:24:52
问题 Whenever I try to start my Discord bot, this Error Message comes up and I have no idea why my SSL certificate is expired, since if I visit Discordapp.com via Browser the certificate is still not expired (valid through Nov 2020). How can I update this specific certificate? I am on Win 10 (ver 2004) Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\connector.py", line 936, in _wrap_create_connection return await self._loop

Apache HttpClient failing with Java 11 on macOS

只谈情不闲聊 提交于 2020-06-08 07:53:49
问题 I'm trying to move my code from Java 8 to Java 11, this code... private static String readMultiHttpsUrlResultAsString(List<String> mbRecordingIds, String level) throws Exception { String result = ""; class NaiveTrustStrategy implements TrustStrategy { @Override public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException { return true; } }; SSLContext sslcontext = org.apache.http.ssl.SSLContexts.custom() .loadTrustMaterial(new NaiveTrustStrategy()) .build();

cURL error 60: SSL certificate problem: certificate has expired

落爺英雄遲暮 提交于 2020-06-05 08:30:01
问题 We running 2 application on amazon ec2 ( backend.abc.com & frontend.abc.com ). For that application we used a paid SSL Certificate. That certificate expiration date at 2021 June . But today, we got an error - cURL error 60: SSL certificate problem: certificate has expired (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) We check certificate expiration date, but their was no problem ( 2021 June ). Then we follow this thread - curl: (60) SSL certificate problem: unable to get local

SSL site won't load non-SSL scripts from other domain

别等时光非礼了梦想. 提交于 2020-06-03 07:49:27
问题 I have a website with SSL (https instead of http). I am attempting to embed a widget that references files (js, css) from another domain. This other domain does not have SSL (http instead of https). As a result, I get an net::ERR_INSECURE_RESPONSE and the widget will not load. How can I tell my site to allow the insecure content used by the widget? 回答1: You cannot tell a website to allow insecure content in the page as it is not the site that is blocking access to the scripts - it's the

SSL site won't load non-SSL scripts from other domain

孤街浪徒 提交于 2020-06-03 07:42:22
问题 I have a website with SSL (https instead of http). I am attempting to embed a widget that references files (js, css) from another domain. This other domain does not have SSL (http instead of https). As a result, I get an net::ERR_INSECURE_RESPONSE and the widget will not load. How can I tell my site to allow the insecure content used by the widget? 回答1: You cannot tell a website to allow insecure content in the page as it is not the site that is blocking access to the scripts - it's the

Is it possible to do async_handshake after reading from socket prior using Boost::asio?

我是研究僧i 提交于 2020-06-01 17:14:13
问题 I have a boost::asio::ssl::stream<boost::asio::ip::tcp::socket> typed socket. When boost first accepts a connection to this socket, I want to peek at some bytes. However, peeking is not something you can do properly/safely. So I read the bytes I need and have them in a buffer. typedef socket_type boost::asio::ssl::stream<boost::asio::ip::tcp::socket>; void OnAccept(std::shared_ptr<socket_type> socket) { boost::asio::mutable_buffers_1 sslBuffer(m_Buffer.data(), m_Buffer.size()); // I'm going

Is it possible to do async_handshake after reading from socket prior using Boost::asio?

孤街浪徒 提交于 2020-06-01 17:09:40
问题 I have a boost::asio::ssl::stream<boost::asio::ip::tcp::socket> typed socket. When boost first accepts a connection to this socket, I want to peek at some bytes. However, peeking is not something you can do properly/safely. So I read the bytes I need and have them in a buffer. typedef socket_type boost::asio::ssl::stream<boost::asio::ip::tcp::socket>; void OnAccept(std::shared_ptr<socket_type> socket) { boost::asio::mutable_buffers_1 sslBuffer(m_Buffer.data(), m_Buffer.size()); // I'm going

How can i attach ssl cert with ksoap2 android

南笙酒味 提交于 2020-06-01 05:13:18
问题 I have implemented ksoap2 (https://simpligility.github.io/ksoap2-android/getting-started) in my android project. Now i have a valid SSl certificate and now i want to make call every api with using that ssl certificate. My web service has HTTPS val envelope = SoapSerializationEnvelope(SoapEnvelope.VER11) envelope.setOutputSoapObject(soapObject) envelope.dotNet = true val httpTransportSE = HttpTransportSE(URL) try { httpTransportSE.call(SOAP_ACTION, envelope) val soapPrimitive = envelope

RabbitMQ Connection reset Exception

久未见 提交于 2020-06-01 05:12:46
问题 I have the same issue from this question: RabbitMQ Connection reset. My code is in kotlin and from https://www.rabbitmq.com/ssl.html#java-client-connecting. val connectionFactory = ConnectionFactory() connectionFactory.host = "localhost" connectionFactory.port = 5671 connectionFactory.useSslProtocol() val connection = connectionFactory.newConnection() val channel = connection.createChannel(); channel.queueDeclare("rabbitmq-java-test", false, true, true, null); channel.basicPublish("",