1) Get the public certificate file from the GitHub Server, such as abc.cer
It can also be obtained from the Servers URL in the browser's address bar by clicking the 'Lock' icon and then go to Certificate > Details > Copy to File
2) Run the keytool -importcert command as below to import the certificate to your local keystore.jks file:
keytool -importcert -alias -file -keystore
Here, the alias is the alias you want to provide for the certificate; the file is the absolute path for the location of the certificate you have downloaded from the server, and keystore is any keystore.jks file you can name that you will share with the users to configure in their TDV Studio from their local machines
keytool -importcert -alias test -file /opt/tdv/awsgit-07-21-2021.crt -keystore mykeystore.jks
Enter keystore password:
Re-enter new password:
Owner: EMAILADDRESS=xyz@tibco.com, CN=tdv, OU=TDV, O=TIBCO, L=San Jose, ST=CA, C=US
Issuer: EMAILADDRESS=xyz@tibco.com, CN=tdv, OU=TDV, O=TIBCO, L=San Jose, ST=CA, C=US
Serial number: 78b450e1b619b7216c68dc075cb3f221fc93e29c
Valid from: Tue Jul 21 13:06:13 PDT 2020 until: Wed Jul 21 13:06:13 PDT 2021
Certificate fingerprints:
SHA1: 32:AD:D1:DE:D2:DC:6C:1C:AE:20:52:37:20:D5:D7:E7:E2:6E:92:95
SHA256: C9:CB:94:0C:1D:71:90:CE:63:40:02:6E:B0:93:23:C0:EF:7A:ED:87:EA:C2:0E:BA:5A:95:F9:6F:C1:7D:21:AB
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 1
Trust this certificate? [no]: yes
Certificate was added to keystore 3) In the TDV Studio, navigate to the VCS tab > Manage Connections > Click the '+' icon and fill in the details as required.
You can upload the generated mykeystore.jks file into the certificate tab for VCS connection, along with the keystore password.
Note: The TDV Studio dynamically shows the Certificate tab once the URL is identified to be https and the VCS Type is 'GitHub.'