403 questions
0
votes
0
answers
52
views
HTTP/2 in my GET Request not present for one of my Endpoints endpoint in java (Springboot)
I wanted to ask that there is something wrong with one of my endpoints, the endpoint seems to be blocked for some reasons, I have other endpoints that are giving response but this one fails.See the ...
1
vote
1
answer
89
views
Java cacerts of type JKS is being loaded while the KeyStore.getDefaultType() is still PKCS12
cacerts, the default truststore of Java is of type JKS in OpenJDK 17. So while trying to load it, I have KeyStore.getDefaultType() set to PKCS12 by default and I am still able to load them.
I've tried ...
-1
votes
0
answers
48
views
Spring AI Getting "unable to find valid certification path to requested target" while using custom LLM model endpoint hosted by our company [duplicate]
I am using Spring Boot AI for LLM base application. My company hosted its LLM models at https://dummy-server.xyz.com/. To test how it works, I have taken an example from Spring AI official site and ...
-4
votes
1
answer
199
views
Is there a way to prevent directory traversal attacks (../ pattern) at the JRE level? [closed]
I'm looking for a way to prevent directory traversal attacks, specifically those involving the ../ pattern in file paths, at the Java Runtime Environment (JRE) level. My goal is to ensure that such ...
1
vote
1
answer
182
views
How to convert ssh public key to PublicKey in java
I want to convert my ssh public key in *.pub file to a PublicKey(java.security.PublicKey).
The reason is that I need to inspect the algorithm of the ssh public key, is there any way to do that?
since ...
0
votes
2
answers
424
views
java.lang.IllegalArgumentException: Invalid point encoding 0x30
I have a public key, and its corresponded signature, R, S values generated by nodejs (v20.14.0) with the function as below
const { privateKey, publicKey } = crypto.generateKeyPairSync('ec', {
...
0
votes
1
answer
218
views
Convert Ed25519 public key to x25519 public key in Java
I'm trying to convert Ed25519 public key to x25519 public key in Java, using the lazysodium package:
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java....
0
votes
0
answers
61
views
API Connectivity using "PKCS12" certificate file
I am getting below Error
javax.net.ssl.SSLHandshakeException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to ...
-1
votes
1
answer
695
views
java Caused by: javax.net.ssl.SSLProtocolException: Cannot decode named group: x25519
I need some help.
I writing a JavaFX app which uses java kubernetes client https://github.com/kubernetes-client/java which in turn uses bouncyCastle.
When I run the app from Intellij everything works. ...
0
votes
1
answer
255
views
.InvalidKeyException: IOException : version mismatch while generating a Private key using a PEM file
I have a .pem file and I am trying to generate a PrivateKey out of it so I can create a JWT (JSON Web Token) that is signed by this private key. However, the code breaks when the KeyFactory....
2
votes
0
answers
430
views
java.security.NoSuchAlgorithmException: TLSv1.2 SSLContext not available
`Getting this error on using BCFIPS jar 1.0.2.4 on jdk 17 with java.security file with following
values
jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
DH keySize < ...
0
votes
0
answers
59
views
How do I generate a SunEC Key?
I am trying to generate a key using the EC algorithm. I tried to do it like this...
keytool -genkeypair -keystore src/test/resources/org/jgleason/auth/client-ec.p12 -storetype PKCS12 -storepass ...
0
votes
0
answers
493
views
Do I have to restart my Server for java.security file changes to have an effect?
Our security program flagged our Java-server for using static key ciphers. Thus I added these algorithms to the jdk.tls.disabledAlgorithms inside of java.security:
TLS_RSA_WITH_AES_128_CBC_SHA256
...
1
vote
0
answers
614
views
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism at javax.crypto.JceSecurity in JavaCompiler API
I am trying to connect to SSH (Unix environment) using the JSch library in JavaCompiler API. I can connect to the unix environment through a normal Java program but cannot from JavaCompiler API.
Looks ...
0
votes
1
answer
139
views
How to whitelist certificate extension in java
While ssl handshake, I get the following error:
Certificate contains unsupported critical extensions.
This exception is thrown by sun.security.validator.EndEntityChecker class
private void ...