Top "Java-security" questions

Java security technology is set of libraries, tools, and implementations of commonly used security algorithms, mechanisms, and protocols including cryptography, public key infrastructure, secure communication, authentication, and access control

Convert .cer certificate to .jks

I need to convert a .cer file to a .jks file. I saw a few questions about it, but haven't …

java certificate jks cer java-security
Enable TLSv1.2 and TLS_RSA_WITH_AES_256_CBC_SHA256 Cipher Suite

Server: TLS Version: v1.2 Cipher Suite: TLS_RSA_WITH_AES_256_CBC_SHA256 Client: JRE 1.7 I am receiving the below error …

ssl encryption java-7 tls1.2 java-security
Keep getting No X509TrustManager implementation available error when trying to connect to web socket server

I have the following code for connecting to a web socket server in my java application using secure websockets. private …

java ssl websocket x509certificate java-security
"PKIX path building failed: unable to find valid certification path to requested target" Only in release version

The issue is something tricky. I tried to connect my war file to a Active Directory via LDAPS. While running …

java intellij-idea ssl-certificate shiro java-security
Java: InvalidAlgorithmParameterException Prime size must be multiple of 64

I implemented a Java program that will connect and execute a command in a remote server using JSCH. The problem …

java ssh jsch java-security
Where is the JRE lib/security directory on Mac OS X?

I need to generate a cert and can't find this directory. Thanks!

java macos pki java-security
How to open a .ks file in windows?

I have a key.ks file that needs to be opened. Can someone please suggest how to open this file …

java keystore java-security
JDK 11 SSL Error on valid certificate (working in previous versions)

The following code throws an error in JDK 11: HttpURLConnection con = (HttpURLConnection) new URL("https://sis.redsys.es/sis/realizarPago").openConnection(); …

java ssl openssl java-security java-11
Crash casting AndroidKeyStoreRSAPrivateKey to RSAPrivateKey

I'm following this tutorial: How to use the Android Keystore to store passwords and other sensitive information. It (loosely) ties …

java android cryptography java-security android-6.0-marshmallow
Converting byte[] to Hex string in android

I am trying to convert byte[] to Hex string and same Hex string to byte[] in android , data got mismatched. …

java android encryption android-security java-security