https

Connecting to ElasticSearch Cloud 5.x with Java Client and X-Pack/HTTPS

北慕城南 提交于 2020-01-02 04:40:07
问题 Is it possible to connect to ElasticSearch via HTTPS using X-Pack? With the switch to use certificate, the own way of connecting is no longer work. I have no problem with using certificate, but I need to know where to get one or upload the key to the cloud instance, but I cannot find information anywhere. I'm also getting no answer from anyone in the forum or IRC. Has anyone successfully done this? There is no longer a warning when launching a 5.x instance so I assumed this is possible, but I

Redirect all http to https in nginx, except one file

爷,独闯天下 提交于 2020-01-02 01:17:13
问题 I am currently running my site on http, and want to move it over to https such that nginx handles the redirection automagically. This is fairly trivial to do, I guess. However, there is one file that (for several reasons) is hot-linked from other sites, some of which are over http and some over https. I want to ensure that the file is available over both http and https, so as to ensure that browsers don't complain with the "mixed content" dialog. The path of the file looks something like this

preventing self signed ssl certificates in ios5

和自甴很熟 提交于 2020-01-01 22:13:12
问题 I use code that does basic HTTP authentication, see below. This works fine in IOS 5. But now we changed the protocol to https and we used a fake, self signed, certificate. It also worked! This seems insecure. Does anybody know if you need to do something in this method to prevent certain certificates to be accepted? - (void)connection:(NSURLConnection *)connection willSendRequestForAuthenticationChallenge: (NSURLAuthenticationChallenge *)challenge { if ([challenge previousFailureCount] <=

SSL handshake failure when importing certificates from file

老子叫甜甜 提交于 2020-01-01 19:59:09
问题 I am creating a HTTPS Server and validating the certificates on my own. I have a strange error. When I generate a certificate and add that keystore, I was able to SSL handshake. keytool -genkey -keyalg rsa -alias mycert -keystore lig.keystore -storepass changeit -keypass changeit Whereas When I import the certificate using keytool and add it to the keystore, I am getting SSH Handshake Failure Error. keytool -noprompt -importcert -file certDer -alias mycert -keystore lig.keystore -storepass

SSL handshake failure when importing certificates from file

帅比萌擦擦* 提交于 2020-01-01 19:59:08
问题 I am creating a HTTPS Server and validating the certificates on my own. I have a strange error. When I generate a certificate and add that keystore, I was able to SSL handshake. keytool -genkey -keyalg rsa -alias mycert -keystore lig.keystore -storepass changeit -keypass changeit Whereas When I import the certificate using keytool and add it to the keystore, I am getting SSH Handshake Failure Error. keytool -noprompt -importcert -file certDer -alias mycert -keystore lig.keystore -storepass

SSL handshake exception while connecting over https using self signed certificate in android Nougat

非 Y 不嫁゛ 提交于 2020-01-01 19:43:16
问题 In my android application i connect over https. I am using a self signed certificate to connect. It is working on devices below api level 24 (before android nougat).But on android Nougat it throws the SSL Handshake exception : javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. This is how i connect over https:- SSLContext context = null; try { KeyStore keyStore = KeyStore.getInstance("PKCS12"); // Get the raw

fancybox mixed content problem on magento

百般思念 提交于 2020-01-01 18:58:48
问题 I am using fancybox for signin/Register links on the top. The site was fully http and certainly client wants to enable ssl and by that https enabled. So here the fancybox ended up in problem. This is what header link phtml code. <li id="header-main-info-left"> Hi Guest, <a class="lightbox-start" href="<?php echo Mage::getUrl('customer/account/ajaxlogin');?>">Sign in</a> or <a class="lightbox-start" href="<?php echo Mage::getUrl('',array('_secure'=>false));?>customer/account/create/">Register<

fancybox mixed content problem on magento

限于喜欢 提交于 2020-01-01 18:58:32
问题 I am using fancybox for signin/Register links on the top. The site was fully http and certainly client wants to enable ssl and by that https enabled. So here the fancybox ended up in problem. This is what header link phtml code. <li id="header-main-info-left"> Hi Guest, <a class="lightbox-start" href="<?php echo Mage::getUrl('customer/account/ajaxlogin');?>">Sign in</a> or <a class="lightbox-start" href="<?php echo Mage::getUrl('',array('_secure'=>false));?>customer/account/create/">Register<

How to programmatically add self signed certificate for making a HTTPS request from java code?

风格不统一 提交于 2020-01-01 16:58:10
问题 Following code snippet is to get JSon response from a HTTP URL: private static void getJson(String location) { try { try { createSSLSocket(); URL url = new URL( "https://abc.com/key/one"); HttpURLConnection conn = (HttpURLConnection) url .openConnection(); conn.setRequestMethod("GET"); conn.setRequestProperty("Accept", "application/json"); if (conn.getResponseCode() != 200) { throw new RuntimeException("Failed : HTTP error code : " + conn.getResponseCode()); } BufferedReader br = new

Is self-signed and/or expired HTTPS certificates worse than just using HTTP?

时光总嘲笑我的痴心妄想 提交于 2020-01-01 14:25:16
问题 Despite the fact that you get a big red threatening warning telling you that the certificate has not been verified by one of those certificate authorities or has expired, what is bad with it in comparison to just using HTTP? Is it worse or not? According to Google Chrome (http://www.sslshopper.com/assets/images/chrome-beta-ssl-2.png) « an attacker may be trying to intercept yours communication ». What makes this browser and almost all others raising this warning in the case of a self-signed