File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1217,3 +1217,16 @@ func TestDownloads(t *testing.T) {
12171217 assert .Equal (t , "0.8.4" , resp .VersionInfo .Latest .DNClient )
12181218 assert .Equal (t , "0.5.1" , resp .VersionInfo .Latest .Mobile )
12191219}
1220+
1221+ func TestNebulaPemBanners (t * testing.T ) {
1222+ t .SkipNow () //todo this is correct for 25519 but not p256. Once this test passes, we can lean on Nebula's implementations.
1223+ const NebulaECDSAP256PublicKeyBanner = "NEBULA ECDSA P256 PUBLIC KEY"
1224+ const NebulaEd25519PublicKeyBanner = "NEBULA ED25519 PUBLIC KEY"
1225+ ca , _ := dnapitest .NebulaCACert ()
1226+ pub := ca .MarshalPublicKeyPEM ()
1227+ assert .Contains (t , string (pub ), NebulaEd25519PublicKeyBanner )
1228+
1229+ ca , _ = dnapitest .NebulaCACertP256 ()
1230+ pub = ca .MarshalPublicKeyPEM ()
1231+ assert .Contains (t , string (pub ), NebulaECDSAP256PublicKeyBanner )
1232+ }
You can’t perform that action at this time.
0 commit comments