Skip to content

Commit 7260c80

Browse files
committed
fixup! fixup! Allow the caller to inspect the host's certificate
1 parent 5cc52b5 commit 7260c80

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

LibGit2Sharp.Tests/CloneFixture.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ public void CanInspectCertificateOnClone(string url, string hostname, Type certT
274274
{
275275
var hostkey = (CertificateSsh)cert;
276276
Assert.True(hostkey.HasMD5);
277+
/*
278+
* Once you've connected and thus your ssh has stored the hostkey,
279+
* you can get the hostkey for a host with
280+
*
281+
* ssh-keygen -F github.com -l | tail -n 1 | cut -d ' ' -f 2 | tr -d ':'
282+
*
283+
* though GitHub's hostkey won't change anytime soon.
284+
*/
277285
Assert.Equal("1627aca576282d36631b564debdfa648", BitConverter.ToString(hostkey.HashMD5));
278286
return true;
279287
}

0 commit comments

Comments
 (0)