Ejemplo n.º 1
0
 private void DownloadKey(JsonWebKey jwk, string path)
 {
     if (CanDownloadKey(jwk, out string reason))
     {
         var pem = JwkHelper.ExportPublicKeyToPem(jwk);
         AzureSession.Instance.DataStore.WriteFile(path, pem);
         WriteDebug(string.Format(Resources.PublicKeySavedAt, path));
     }
     else
     {
         WriteWarning(reason);
     }
 }