ssl-certificate

Using a single certificate based on aliases from Java Key Store

时间秒杀一切 提交于 2019-12-30 09:36:47
问题 I have a keystore which has multiple keys and certificates added to it I want to used a certificate based on the aliases from the key store and use it for SSL I tried to set the following System properties but nothing helped System.setProperty("javax.net.ssl.keyAlias", "abcd"); System.setProperty("javax.net.ssl.keyStoreAlias", "abcd"); It always uses the first certificate from the keystore instead of matching the key aliases 回答1: If you look at the Customization section of the JSSE Reference

Forcing https in elasticbeanstalk with certificate from ACM

帅比萌擦擦* 提交于 2019-12-30 09:32:53
问题 I have provisioned a scalable EB(Elasticbeanstalk) rails(puma) instance. I have applied for https through ACM(Amazon Certificate Manager) and applied it to my load balancer. HTTPS is enabled for my website now. But how do I force redirect to https? I have tried a number of solutions online where it was suggested to make a nginx configuration setting manually through .ebextensions and I am not sure where to get the certificate from ACM for this?(I am assuming that is not possible with ACM

Detecting SNI (Server Name Indication) browser support in javascript

瘦欲@ 提交于 2019-12-30 04:02:07
问题 I want to be able to detect if the browser support SNI - Server Name Indication. I'm hoping to redirect non compliant clients to a different address. I was thinking of loading some content through SSL and make sure it was transfered securely. Otherwise the browser doesn't support SNI. Can this be done? 回答1: You could set up a server that supports SNI, serving two host names, on where you require SNI and one that's a fallback solution, both serving the name that they are hosting. Something

how to send SOAP request with SSL certificate in PHP?

旧街凉风 提交于 2019-12-30 02:32:15
问题 I'm trying to send a SOAP - PHP request with a DER certificate (that means the certificate don't have a privateKey) but no success. $local_cert = FULL_PATH_TO_MY_CERT; $client = new SoapClient($wsdl, array( 'local_cert' => $local_cert, 'trace' => 1, 'exceptions' => 1, 'soap_version' => SOAP_1_1, 'encoding' => 'ISO-8859-1', 'compression' => (SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP), 'location' => 'https://webserviceurl:port/ws/servlet/ws' )); Only I recieve this errors: Warning (2):

System.Net.CertificatePolicy to ServerCertificateValidationCallback Accept all certificate policies

☆樱花仙子☆ 提交于 2019-12-30 02:17:26
问题 I've downloaded some sample code that is a bit outdated. It has the following class: public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy { public TrustAllCertificatePolicy() { } public bool CheckValidationResult(ServicePoint sp, System.Security.Cryptography.X509Certificates.X509Certificate cert, WebRequest req, int problem) { return true; } } later on in the code it calls the following: System.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy(); It

Is it possible to force the WCF test client to accept a self-signed certificate?

江枫思渺然 提交于 2019-12-29 18:49:13
问题 I have a WCF web service running in IIS 7 using a self-signed certificate (it's a proof of concept to make sure this is the route I want to go). It's required to use SSL. Is it possible to use the WCF Test Client to debug this service without needing a non-self-signed certificate? When I try I get this error: Error: Cannot obtain Metadata from https:///Service1.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata

Keytool create a trusted self signed certificate

蹲街弑〆低调 提交于 2019-12-29 15:01:33
问题 I am trying to use the (java) keytool to create a self signed certificate but when I attempt to use it I get the following exception (see bottom for entire exception). ...<5 more exceptions above this> Caused by: sun.security.validator.ValidatorException: No trusted certificate found at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:304) at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:107) at sun.security.validator.Validator

URL error 0: The cURL request was retried 3 times and did not succeed

纵然是瞬间 提交于 2019-12-29 08:53:04
问题 I am working on a project that is hosted on Google App Engine, and using app_devserver for local development. At the start I had problems with certificates but when I finally got over that error I am getting this new error I am using Windows 10 and PHPstorm for development. Error: Message: cURL error 0: The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in

cURL is unable to use client certificate , in local server

断了今生、忘了曾经 提交于 2019-12-29 08:07:51
问题 I set up a local server using XAMPP. I have two PHP scripts , a sender and a receiver. I am trying to send an XML file from the sender to the receiver using HTTP over SSL (HTTPS). I created a self signed certificate, configured XAMPP, and I am using this code on my sender : <?php /* * XML Sender/Client. */ // Get our XML. You can declare it here or even load a file. $xml = file_get_contents("data.xml"); // We send XML via CURL using POST with a http header of text/xml. $ch = curl_init(); /

SSLHandshakeException: no cipher suites in common

有些话、适合烂在心里 提交于 2019-12-29 04:53:06
问题 Followed the instructions here and recreated certificates that I previously incorrectly created. Something has changed as I am now seeing javax.net.ssl.SSLHandshakeException: no cipher suites in common on the server and javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure on the client. Instead of the errors this question The server is ClassFileServer.java and the respective client SSLSocketClientWithClientAuth.java Any tips on getting the two ends to play nicely, note