How can I add a certificate to my Studio?

1
0
-1

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

Comments

Submitted by unai.gaston.caminos on Tue, 09/05/2023 - 15:25

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.

1 answer

1
+1
-1
This one is the BEST answer!

Hi,

Certificates can be imported at the Java installation level, like any other java application.

HTH
Romain

Comments

Submitted by unai.gaston.caminos on Wed, 09/06/2023 - 17:43

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....

:-)

Submitted by romain.bioteau on Wed, 09/06/2023 - 18:05

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

Submitted by unai.gaston.caminos on Wed, 09/06/2023 - 18:37

Perfect!

That answers my question.

Thanks, Romain.

Notifications