1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 function setupSSLDebuggingInfo() {
6 if (loadTimeData.getString('type') != 'SSL')
9 // The titles are not internationalized because this is debugging information
10 // for bug reports, help center posts, etc.
11 appendDebuggingField('Subject', loadTimeData.getString('subject'));
12 appendDebuggingField('Issuer', loadTimeData.getString('issuer'));
13 appendDebuggingField('Expires on', loadTimeData.getString('expirationDate'));
14 appendDebuggingField('Current date', loadTimeData.getString('currentDate'));
15 appendDebuggingField('PEM encoded chain', loadTimeData.getString('pem'));
17 $('error-code').addEventListener('click', toggleDebuggingInfo);