public SslHandshakeDetails(SslHandshake model)
        {
            Model             = model;
            DataContext       = this;
            ChannelProperties = CreateCommonProperties();

            AddCerts();

            HandshakeText = CreateLog();

            InitializeComponent();

            BindCommand(CertificateCommands.ViewCertificateDetails, c => ShowCertificateChain(c.Chain));
            BindCommand(CertificateCommands.ExportPEM, c => ExportCerts("PEM", c.Certificate2));
            BindCommand(CertificateCommands.ExportDER, c => ExportCerts(X509ContentType.Cert, c.Certificate2));
            BindCommand(CertificateCommands.ExportAllPEM, c => ExportCerts("PEM", c.Chain));
            BindCommand(CertificateCommands.ExportAllDER, c => ExportCerts(X509ContentType.Cert, c.Chain));
            BindCommand(CertificateCommands.InstallCA, c => InstallCA(c.Chain.Last()));
        }
Example #2
0
 public MessageData(SslHandshake obj)
 {
     SetSerializedObject(obj);
 }