Index: chrome/browser/resources/security_warnings/ssl.js |
diff --git a/chrome/browser/resources/security_warnings/ssl.js b/chrome/browser/resources/security_warnings/ssl.js |
index 7185366b94d9b45ac4ab7de6bdd16159f012fd45..447eef8e9bbb68f0b6becca9e632ee32a00c555f 100644 |
--- a/chrome/browser/resources/security_warnings/ssl.js |
+++ b/chrome/browser/resources/security_warnings/ssl.js |
@@ -9,3 +9,18 @@ var CMD_MORE = 2; |
var CMD_RELOAD = 3; |
var CMD_HELP = 4; |
var CMD_CLOCK = 5; |
+ |
+function setupSSLDebuggingInfo() { |
+ if (!loadTimeData.getBoolean('ssl')) |
+ return; |
+ |
+ // The titles are not internationalized because this is debugging information |
+ // for bug reports, help center posts, etc. |
+ appendDebuggingField('Subject', loadTimeData.getString('subject')); |
+ appendDebuggingField('Issuer', loadTimeData.getString('issuer')); |
+ appendDebuggingField('Expires on', loadTimeData.getString('expirationDate')); |
+ appendDebuggingField('Current date', loadTimeData.getString('currentDate')); |
+ appendDebuggingField('PEM encoded chain', loadTimeData.getString('pem')); |
+ |
+ $('error-code').addEventListener('click', toggleDebuggingInfo); |
+} |