blob: 4f180d38bfbebe7aa62c7d1d1c3770591569c9c7 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function setupSSLDebuggingInfo() {
if (loadTimeData.getString('type') != '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'),
true);
$('error-code').addEventListener('click', toggleDebuggingInfo);
}