I am using ssl for jdbc-application. It works fine in my small application. Now, I try to use it for my cuba-project. In my small application (not cuba), I just set the System.property(…) and did a connection using jdbc etc.
But as I know, I need to use gradle in cuba.studio.
In fact, I just have to configure this two properties:
So, when I try to make a connection on the browser with cuba-studio to my database, I will always get an problem to connect to my database. So, I think I have to modify the code first, with the Properties and then, the connection will be working?!
Because, if I dont use the certificate, I will get an “Access denied”.
yes, thats right.
I try to make a connection to my database in cloud, and its failed, because I had to use ssl. When I start to use ssl in a test application, it works now, but there I use simple Java-code with System.properties(…) and jdbc connection, where the System.Properties have a path to my truststore, which I put in meta-inf folder.
I started cuba.studio on browser, and I can not make a connection to my cloud-database. So, I assume, that I have to “code” it, like I told above and configure the system properties, that it will also work on cuba.
Thats why I am asking for help, that I hope, that I can make the connection to my database in cuba.studio, after I configure the system properties for ssl.
Okay, so you can pass these values to the STUDIO_OPTS environment variable in the following way: -Djavax.net.ssl.trustStore=pathToMyTrustStore -Djavax.net.ssl.trustStorePassword=Password
this arguments will be not set in my computer. Because, I run a small application and set the system properties with System.set(…), when I put this arguments as environment variable and call the method:
System.getProperty("javax.net.ssl.trustStore")
I will get the value null
Do you have a hint, why this option is not set by the environment variable?
Unfortunately, I still get null when I call the getProperty(..) method.
Is there a way, to see, which Java_options will be used? For example in this eclipse.
I want to ask, if you have a tip for me, how I should set ssl, when I deploy this app and put on server? Because the path to my certificate is just local.
if I only want to use this variable for Cuba instance, I should set STUDIO_OPTS variable?
And where will the cuba application “know” that he have to use studio_opts instead of java_opts variable?