You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MessageBox.Show(@"The specified .pfx/.p12 file does not exist or access to it failed.",@"Selected file or path does not exist",MessageBoxButtons.OK,MessageBoxIcon.Error);
1577
+
1578
+
// Log the error message for the .pfx/.p12 file not found or access failed
1579
+
Message("The specified .pfx/.p12 file does not exist or access to it failed",EventType.Error,1059);
1580
+
1561
1581
returnfalse;// Indicate failure
1562
1582
}
1563
1583
1564
1584
if(string.IsNullOrEmpty(textBoxPFXPassword.Text))
1565
1585
{
1566
1586
MessageBox.Show(@".pfx/.p12 password cannot be empty.",@"Missing password",MessageBoxButtons.OK,MessageBoxIcon.Question);
1587
+
1588
+
// Log the error message for the .pfx/.p12 password being empty
1589
+
Message(".pfx/.p12 password cannot be empty",EventType.Error,1060);
MessageBox.Show(@"Error obtaining the private key from the .pfx/.p12 file. The certificate cannot be used to create digital signatures.","",MessageBoxButtons.OK,MessageBoxIcon.Information);
1599
+
1600
+
// Log the error message for the private key not found in the .pfx/.p12 file
1601
+
Message("Error obtaining the private key from the .pfx/.p12 file. The certificate cannot be used to create digital signatures.",EventType.Error,1061);
1602
+
1575
1603
returnfalse;// Indicate failure
1576
1604
}
1577
1605
}
1578
1606
catch
1579
1607
{
1580
1608
MessageBox.Show(@"Error obtaining the certificate from the .pfx/.p12 file. Probably .pfx/.p12 password is not correct or the .pfx/.p12 file is invalid.","",MessageBoxButtons.OK,MessageBoxIcon.Hand);
1609
+
1610
+
// Log the error message for the certificate not found in the .pfx/.p12 file or the password being incorrect
1611
+
Message("Error obtaining the certificate from the .pfx/.p12 file. Probably .pfx/.p12 password is not correct or the .pfx/.p12 file is invalid.",EventType.Error,1062);
1612
+
1613
+
// Clear the certificate data and show an error message
0 commit comments