Hi,
In the context of trying to build and deploy a custom theme in my Studio/UID, I need to install a certificate in my Studio so that it can retrieve some code from the NPM registry.
So, how can I add a certificate to my Studio?
-
Can I add the required java options for the keystore/truststore in the BonitaStudioSubscription-linux.ini / BonitaStudioSubscription.ini? Will it be taken into account by the the build operation?
-
Should I do that somewhere else instead?
-
Else, can I simply add the certificate in the JVM's default truststore?
-
But what if I also need a keystore to store a private key...?
Any help would be most welcome.
Thanks!
Unai
Hi,
Certificates can be imported at the Java installation level, like any other java application.
HTH
Romain
Well, it turns out there was no need to install a certificate in the Studio to resolve the SSL error raised while trying to fetch some code from the NPM registry. (See: npm no longer supports its self-signed certificates).
However, there may be some other context where the need to install a certificate on the Studio arises... So the question is still valid, I guess.
Thank you, Romain.
So that is indeed how you add a certificate into a Java keystore/truststore.
The question then is which keystore/truststore you add them to so they are used/seen by the Studio.
Or how you tell your Studio to use your own keystore/truststore....
:-)
You can choose the key store and trust store when doing the import.
It uses some default values, so you should not need additional configuration Studio side.
If you use a custom key store/trust store, Studio can be started adding the following system properties in the BonitaStudio*.ini
file.
Note that it should also be added when maven is invoked if required.
HTH
Romain
Perfect!
That answers my question.
Thanks, Romain.