Flare 12 SSH + GIT - Certificate Specification

This forum is for all Flare issues related to using Source Control.

Flare 12 SSH + GIT - Certificate Specification

Postby matiovsky on Fri Apr 08, 2016 1:23 am

Hi,
I was trying to connect Flare 12 project with Git repo through SSH and I am stuck on the "Certificate Specification" dialog.
I added my keys (Public and private) and clicked OK. Nothing happened and this dialog is still here (no error or something). I know that my keys are OK, since I am using them outside the Flare.
Anybody experiencing same behaviour? Or some advice how to connect?
Thanks
matiovsky
Jr. Propeller Head
 
Posts: 8
Joined: Tue May 26, 2015 4:49 am

Re: Flare 12 SSH + GIT - Certificate Specification

Postby kevinmcl on Wed Jun 22, 2016 4:49 pm

Hi.

Did you ever figure this out or work around it?

Or are you still stuck, months later?
De gustibus non disputandum est
kevinmcl
Sr. Propeller Head
 
Posts: 243
Joined: Mon Sep 11, 2006 10:58 am

Re: Flare 12 SSH + GIT - Certificate Specification

Postby matiovsky on Tue Jun 28, 2016 5:01 am

Still stuck. So I started using https instead of ssh. It is still problematic, but at least it's doing something.
matiovsky
Jr. Propeller Head
 
Posts: 8
Joined: Tue May 26, 2015 4:49 am

Re: Flare 12 SSH + GIT - Certificate Specification

Postby AnDelbruyere on Tue Sep 13, 2016 11:43 pm

Hi,

We are trying to migrate our Flare projects from Subversion to Git, and we are facing the same problem with the SSH public and private keys: Flare does not accept them even if they are correctly 'labelled'.

Should you have solved your problem since your last post, could you please let me know?
We cannot consider using HTTP for the time being.

On my side, I will let you know if we find a solution in the coming days.

Kind regards,
Anne Delbruyère
AnDelbruyere
Jr. Propeller Head
 
Posts: 2
Joined: Mon Feb 27, 2012 2:59 am

Re: Flare 12 SSH + GIT - Certificate Specification

Postby matiovsky on Mon Sep 19, 2016 7:36 am

Nope. Still using HTTPS...
matiovsky
Jr. Propeller Head
 
Posts: 8
Joined: Tue May 26, 2015 4:49 am

Re: Flare 12 SSH + GIT - Certificate Specification

Postby ThomasK on Thu Oct 19, 2017 3:16 am

I have just fought this battle in Flare2017r3 and finally figured out how to do this by sheer trial & error.
As I have wasted a lot of time figuring this out, i'm hoping to save other people from having to do the same by posting this here.

The public key must have a specific format of "[type] [base64key]"
So you can edit the key exported from, for example PuttyGen, in notepad to convert it from:
Code: Select all
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20170522"
LongMulti
LineBase64
StringHere==
---- END SSH2 PUBLIC KEY ----

To this, on a single line:
Code: Select all
ssh-rsa LongMultiLineBase64StringHere==


The private key must have the OpenSSH format, this can be done by importing the key in PuttyGen, and using the "Conversions" function to export it to an OpenSSH key format.

After these changes, the Git binding works beautifully via SSH!

I just wish that these key formats were documented better.
ThomasK
Jr. Propeller Head
 
Posts: 7
Joined: Wed May 10, 2017 6:09 am

Re: Flare 12 SSH + GIT - Certificate Specification

Postby chrispitude on Sat Oct 21, 2017 1:47 pm

ThomasK wrote:I have just fought this battle in Flare2017r3 and finally figured out how to do this by sheer trial & error.
As I have wasted a lot of time figuring this out, i'm hoping to save other people from having to do the same by posting this here.

The public key must have a specific format of "[type] [base64key]"
So you can edit the key exported from, for example PuttyGen, in notepad to convert it from:
Code: Select all
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20170522"
LongMulti
LineBase64
StringHere==
---- END SSH2 PUBLIC KEY ----

To this, on a single line:
Code: Select all
ssh-rsa LongMultiLineBase64StringHere==


The private key must have the OpenSSH format, this can be done by importing the key in PuttyGen, and using the "Conversions" function to export it to an OpenSSH key format.

After these changes, the Git binding works beautifully via SSH!

I just wish that these key formats were documented better.


Now that you've cracked the magic code, please file a bug or enhancement for documentation update, and include the magic details in your request!
chrispitude
Propeller Head
 
Posts: 55
Joined: Thu Mar 23, 2017 12:23 pm


Return to Source Control

Who is online

Users browsing this forum: No registered users and 2 guests