mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
added e..
This commit is contained in:
@@ -212,9 +212,14 @@ func initializeUUID() error {
|
||||
return keyErr
|
||||
}
|
||||
var rsaPublicKey = &rsaPrivKey.PublicKey
|
||||
fmt.Printf("found modulus: %d \n", rsaPublicKey.N)
|
||||
|
||||
telemetry := models.Telemetry{UUID: uuid.NewString(), TrafficKeyPriv: *rsaPrivKey, TrafficKeyPub: *rsaPublicKey, PubMod: *rsaPublicKey.N}
|
||||
fmt.Printf("E: %d \n", rsaPublicKey.E)
|
||||
telemetry := models.Telemetry{
|
||||
UUID: uuid.NewString(),
|
||||
TrafficKeyPriv: *rsaPrivKey,
|
||||
TrafficKeyPub: *rsaPublicKey,
|
||||
PubMod: *rsaPublicKey.N,
|
||||
PubE: rsaPublicKey.E,
|
||||
}
|
||||
telJSON, err := json.Marshal(&telemetry)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user