truststore

Trusting an expired certificate [duplicate]

本秂侑毒 提交于 2019-12-22 00:44:51
问题 This question already has answers here : java - ignore expired ssl certificate (3 answers) Closed 4 years ago . My client is failing with the below error while communicating with a https server with an expired cert. While we are in the process of waiting that to be fixed on the server side by renewing, I am wondering if we can by pass this error by adding the expired cert to our own trust store? This allows us to gain some testing time while waiting for the cert to be renewed. US has an end

Recursively change system property at runtime in java

随声附和 提交于 2019-12-21 21:25:14
问题 I am having a question and searching for an example for changing system property at runtime in java. In other words , I am having a standalone library which will load System.setProperty("javax.net.ssl.trustStore", trustStorePath) where the value of trustStorePath will change according to condition. If condition changes then I need to change the value of trustStorePath and need to set System Property. But the story is when I set the value for very first time, it stores the value and use it

How to configure trustStore for javax.net.ssl.trustStore on windows?

牧云@^-^@ 提交于 2019-12-20 02:29:35
问题 I'm trying to pull messages from an email server in java using imap and i run into this exception: DEBUG: JavaMail version 1.4.2 DEBUG: successfully loaded resource: /META-INF/javamail.default.providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp

Setting the right truststore in JBoss 7

*爱你&永不变心* 提交于 2019-12-19 04:56:25
问题 I want to send EMails from a JBoss 7 application. The SMTP server needs a TLS connection with a self signed certificate. If I try to send a EMail I get a SSLHandshakeException because the server certificate cannot be checked. To fix this I have add this: http://springinpractice.com/2012/04/29/fixing-pkix-path-building-issues-when-using-javamail-and-smtp/ (putting the SMTP server certificate into a java truststore file) My problem is now how to set the truststore file to JBoss 7? I known at

Get certificate and add it to a Java truststore, when only having https URL?

前提是你 提交于 2019-12-19 04:08:05
问题 I'm trying to send push notifications to Android devices through the Google Cloud Message servers. The URL we use to do that is: https://android.googleapis.com/gcm/send In our entreprise applications, we do not use the default CA authorities and we add manually each entity we trust for security reason, in a truststore file loaded by SSLContext properties. I'd like to add GCM certificate to our truststore. I don't know how to get the certificate from that URL. It seems the Chrome/Firefox

How to find current truststore on disk programatically?

主宰稳场 提交于 2019-12-18 12:34:38
问题 Is there any function which tells me what's the current truststore being used in my program. On windows, the default trust store is at JAVA_HOME\lib\security\cacerts. However, the default can be changed in a variety of ways. Using -Djavax.net.ssl.keyStore in the command line Using Keystore class. If the program is running on an App Server under which the application runs may set the store path through it's panel. If the program is running on Tomcat, then Tomcat settings may change the

How to list certificates, trusted by OpenSSL?

為{幸葍}努か 提交于 2019-12-18 10:54:28
问题 As I understand, any software working with X.509 certificates may have own basis to decide, whether a certificate is trusted or not. AFAIK OpenSSL just consults a list (such as, for example, /etc/ssl/certs) and checks if the certificate is present there. Is there a way for OpenSSL to list all certificates which it trusts? I know that I can consult that file myself (on my particular installation of OpenSSL), but is there a (installation-independent) way to get the trusted list from OpenSSL

Digital Certificate: How to import .cer file in to .truststore file using?

放肆的年华 提交于 2019-12-16 22:09:20
问题 Has anyone came across where they have to deal with .truststore file? and knowing how to import .cer into .truststore file? I am not sure if I have to use Java Keytool or Linux command (such as openssl command). Thanks 回答1: # Copy the certificate into the directory Java_home\Jre\Lib\Security # Change your directory to Java_home\Jre\Lib\Security> # Import the certificate to a trust store. keytool -import -alias ca -file somecert.cer -keystore cacerts -storepass changeit [Return] Trust this

Could not transfer artifact from/to central because of InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

只谈情不闲聊 提交于 2019-12-12 14:10:31
问题 When I try to install the pom.xml of maven project, I get the following error. Please help. Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default-resources) on project pm: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Could not transfer artifact classworlds:classworlds:jar:1.1 from/to

How to authenticate with requests module using a trust store?

狂风中的少年 提交于 2019-12-12 03:30:24
问题 I am currently writing a python language plugin for a compiler I have written that automates http calls for a RESTful API. I have managed to get the login/authentication working using the socket and ssl modules, but this low-level approach seems to create potential problems with parsing the response in order to obtain the authentication token and secret. The requests module seems popular/efficient, however, I cannot seem to get it to function properly for my particular authentication needs. I