-
Notifications
You must be signed in to change notification settings - Fork 566
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
ssl localhost error #9530
Comments
You have used an alias, you need to configure it: server:
port: 8080
host: 0.0.0.0
tls:
enabled: true
private-key:
keystore:
type: "JKS"
passphrase: "changeit"
key.alias: "localhost"
resource:
path: "keystore.jks" |
Thank you. It works now.
The new script for generating the self signed certificate:
I get the following error now: Is it possible to somehow register the certificate that i get no Browser message that the certificate is invalid? |
IIRC with Firefox you can directly register certificates, with other browsers you need to add them to your OS (keychain on macOS, mmc on Windows etc.) Not sure where your java exception is coming from, are you using a Java HTTP client ? If you are using Helidon WebClient you can configure TLS with a truststore: client:
tls:
truststore:
type: "JKS"
passphrase: "changeit"
key.alias: "localhost"
resource:
path: "src/main/resources/keystore.jks" |
Ok i tried to add it in osx 15.1 into the key chain.
I created a cer file and reigistered it in the keychain. Also trusted that certificate. The exception comes from when i start the heldion server like that:
|
I think the first |
I found the answer to how to create a valid self signed certificate.
It will generate the jks file and the .cer certificate for the keychain. In the keychain you have to trust the certificate. |
JKS is a proprietary format only used by Java, it is actually not recommended to use. In most cases you are better off using PEM or PKCS12, as well as Also it seems that macOS Keychain Access only supports PKCS#12. Closing this issue as it seems resolved. |
Environment Details
Problem Description
I create a basic project using mvn with this guide https://helidon.io/docs/v4/se/guides/quickstart
and i create a jks certificate for using https in localhost.
Here is my resources/application.yaml:
I create the jks with the following command:
keytool -genkeypair -alias localhost -keyalg RSA -keysize 2048 -validity 365 -dname "CN=localhost" -keypass changeit -keystore keystore.jks -storepass changeit
I run the application using this command:
I get the following error in the browser: ERR_SSL_PROTOCOL_ERROR
and in the log i get following error:
Steps to reproduce
The text was updated successfully, but these errors were encountered: