return new StrongName (data).RSA;
}
catch {
- if (data [0] != 0x30)
+ 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): ");
return signed;
}
- Console.WriteLine ("Couldn't sign the assembly {0} with this key pair.", assemblyName);
+ Console.WriteLine ("Couldn't sign the assembly {0} with this key pair. Public key of assembly did not match signing public key.", assemblyName);
return false;
}