When the file is empty, data[0] would throw and swallow the original exception.
return new StrongName (data).RSA;
}
catch {
return new StrongName (data).RSA;
}
catch {
+ if (data.Length == 0 || data [0] != 0x30)
throw;
// this could be a PFX file
Console.Write ("Enter password for private key (will be visible when typed): ");
throw;
// this could be a PFX file
Console.Write ("Enter password for private key (will be visible when typed): ");