- Igor Perisic
- PowerBuilder
- Tuesday, 18 July 2023 08:26 PM UTC
Hi,
I am able to use Git but I ran into a few obstacles I had to remove in order to get it working, I'm hoping to see if there is a better way to get Git working without removing these obstacles.
To start, I am using GitLab that our company setup on our local server. Because of this, I think there are some certificate issues because it seems like its self-certified (could be wrong). Anyways, there are two ways I can use git. First is through git commands inside CMD with either SSH or HTTPS. The second is through PowerBuilders built in Source Control System - which I believe uses HTTPS.
Cloning projects through git commands and CMD using SSH doesn't cause any problems - that works smoothly for me once I set up the public key. HTTPS caused some issues - nothing to do with PowerBuilder but with the certificate issue I mentioned earlier. To work around this, I had to run this command
git config --global http.sslVerify false
and I believe this is used to verify ssl certificates. When turned off it doesn't need to verify the certificate but it could lead to some security issues. However, when i ran the reverse of that command
git config --global http.sslVerify true
I stopped having issues. It seems that turning it off and then back on fixes git stuff when using CMD - makes no sense to me how this fixed the problem but maybe sslVerify is still set to false even though I am setting it back to true... Unfortunately though, when attempting to use PowerBuilder's built in Git Source control i ran into more issues. If I set sslVerify to false in cmd - I can connect to the repository. If I set sslVerify to true I get an error "unknown certificate check failure".
That being said, there is definitely an issue with the certificate I am getting from GitLab, and this isn't something I can update on my own. If anyone is familiar with Git do you know of any workarounds around this that doesn't involve me compromising the security like setting sslVerify to false. Does PowerBuilder Source control allow for ssh ('git@localAddres:projects/windows/pb/projectName.git') instead of https (https://localAddres:projects/windows/pb/projectName).
Edit: The main reason why I want to use PB's Git Source Control is to generate the ws_objects folder with the individual files. not sure if this is possible through CMD too or if its only a feature of PB's Source Control.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.