ssl-certificate

Import Certificate for ColdFusion10

拟墨画扇 提交于 2020-01-02 18:44:12
问题 Trying to do a certificate import into the cacerts story in ColdFusion10. I am able to run these commands and get the .cer file to import using these commands. Manually import a certificate Go to a page on the SSL server in question. Double-click the lock icon. Click the Details tab.Click Copy To File. Select the base64 option and save the file. Copy the CER file into C:\ColdFusion9\runtime\jre\lib\security (or whichever JRE ColdFusion is using). Run the following command in the same

Client Certificate Authentication in SSL Handshake

社会主义新天地 提交于 2020-01-02 15:27:33
问题 I was going through SSL Protocol and trying to understand the steps that are involved in SSL Handshake. Now for authenticating the client to the server "Client Certificate Authentication" is done. I want to know what actually happens in "Client Certificate Authentication" in detail. 回答1: SSL Handshake steps: The client sends the server the client's SSL version number, cipher settings, randomly generated data, and other information the server needs to communicate with the client using SSL. The

Client Certificate Authentication in SSL Handshake

时间秒杀一切 提交于 2020-01-02 15:27:10
问题 I was going through SSL Protocol and trying to understand the steps that are involved in SSL Handshake. Now for authenticating the client to the server "Client Certificate Authentication" is done. I want to know what actually happens in "Client Certificate Authentication" in detail. 回答1: SSL Handshake steps: The client sends the server the client's SSL version number, cipher settings, randomly generated data, and other information the server needs to communicate with the client using SSL. The

Android 7.0 : 'javax.net.ssl.SSLHandshakeException: Connection closed by peer

谁说我不能喝 提交于 2020-01-02 10:07:41
问题 When I am trying to access a 'https' web service from my app , it is giving a ' javax.net.ssl.SSLHandshakeException: Connection closed by peer ' error. The same Web Service works fine in the Chrome browser through. This issue is happening only on Android 7.0, It works fine in Android 6.0 & 5.0. The Server is CA certified , not self-signed. 回答1: try use this code, it work for me : private static void initializeSSLContext(Context mContext){ try { SSLContext.getInstance("TLSv1.2"); } catch

javax.net.ssl.SSLPeerUnverifiedException: No peer certificate on Android 4.x and 5.x

 ̄綄美尐妖づ 提交于 2020-01-02 03:41:29
问题 I am running my app on Android 4.4.2 and it throws this error: 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: at com.android.org.conscrypt.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:146) 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:93) 07-03 08:43:59.255 21643-21803/com.myapp

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

How to set up two-way SSL in Nginx for custom location?

混江龙づ霸主 提交于 2020-01-01 17:28:07
问题 I have a rails 4 project with some API. This project runs with nginx v.1.6.3 and https on production. Nginx configurations: upstream app { # Path to Unicorn SOCK file, as defined previously server unix:/tmp/unicorn.my_domain.sock fail_timeout=0; } server { listen 80; server_name my_domain.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl; ssl_certificate /etc/nginx/ssl/public.crt; ssl_certificate_key /etc/nginx/ssl/private.rsa; server_name my_domain.com; root /var

How does one install ssl certificates programatically (OpenSSL)

爷,独闯天下 提交于 2020-01-01 17:25:30
问题 I have an application which I am working on for a client which in summary allows each of their clients to create their own own version of the application by customizing the templates and associate their own domain name (all the code is located on my clients server). The problem I am faced with is that when such users create their own branded version with their own domain name and then want to login to their admin the system can't provide https authentication. I am aware that one can create a

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

SSL Error in Rails 3.2.3 while using Google Oauth2 client to access API

大兔子大兔子 提交于 2020-01-01 16:48:28
问题 I'm fairly new to OAuth2 and I'm trying to access a user's Blogger account through the Google API with Omniauth and the Google API client. I'm using the following: Rails 3.2.3 Ruby 1.9.3 oauth2 (0.8.0) omniauth (1.1.1) omniauth-google-oauth2 (0.1.13) google-api-client (0.4.6) When I first tried to authenticate a user with Google credentials, I received the following error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed However, when I added the