-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to reach HTTPS endpoint - Keystore generated using pyJKS #45
Comments
I see that you are reading the certificates and keys from files named ".txt". In what format are they in? If they are in PEM format, you must decode them first, see my answer here: #44 (comment) If they are in binary format, what exception do you get on the Java app? |
They are PEM files as text. I m reading as binary. I don't get any exceptions in java app. All I find is no ciphers are supported by the server once it is up and running. All ciphers sent by client or browser is getting rejected in handshake |
As I said, you can't load PEM files directly into the JKS keystore. That'll be your problem. Try to decode them first, and I'm guessing it will work. |
let me try that... |
thanks @magnuswatn for you help. this works now
is there a way i can pro grammatically pass the value while generating keystore ? |
@magnuswatn please ignore , i found it. I would like to add or contribute an example of this to the documentation. is it possible ? ( a complete example of generating a keystore using certs ) |
That's not up to me, but if you create a pull request, I'm sure it will be accepted. More documentation is never wrong :-) |
I am developing a spring boot app and created a keystore file using pyJKS
I used a certificate, certificate_chain & private key
The keystore.jks file is generated successfully. But when i deploy that in a spring sboot app and try to access the endpoint using curl, i get below error
curl -v -k https://localhost:8181/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to localhost (127.0.0.1) port 8181 (#0)
CApath: none
} [5 bytes data]
} [512 bytes data]
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* TLSv1.2 (IN), TLS header, Unknown (21):
{ [5 bytes data]
{ [2 bytes data]
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
Below is the code that i use to generate keystore.
When i use keytool command , generated keystore works fine.
Can someone advise what could be wrong here ?
The text was updated successfully, but these errors were encountered: