diff --git a/Projects/Config/WebApi.Project.ProxyKMSApi.Config.json b/Projects/Config/WebApi.Project.ProxyKMSApi.Config.json index ef00bc3..e43b6e5 100644 --- a/Projects/Config/WebApi.Project.ProxyKMSApi.Config.json +++ b/Projects/Config/WebApi.Project.ProxyKMSApi.Config.json @@ -8,10 +8,10 @@ { "ApiName": "kms", "CertificateVerify": false, - "CertPemPath": "D:\\00_Download\\[MDS인텔리전스] 시스템액스 인증서_2026027\\SystemX-SHM_cert.pem", - "CertKeyPath": "D:\\00_Download\\[MDS인텔리전스] 시스템액스 인증서_2026027\\SystemX-SHM_cert.key", - //"CertPemPath": "D:\\00_Download\\[MDS인텔리전스] 시스템액스 인증서_20260129\\SystemX-SHM_cert.pem", - //"CertKeyPath": "D:\\00_Download\\[MDS인텔리전스] 시스템액스 인증서_20260129\\SystemX-SHM_cert.key", + //"CertPemPath": "D:\\00_Download\\[MDS인텔리전스] 시스템액스 인증서_2026027\\SystemX-SHM_cert.pem", + //"CertKeyPath": "D:\\00_Download\\[MDS인텔리전스] 시스템액스 인증서_2026027\\SystemX-SHM_cert.key", + "CertPemPath": "D:\\00_Download\\[MDS인텔리전스] 시스템액스 인증서_20260129\\SystemX-SHM_cert.pem", + "CertKeyPath": "D:\\00_Download\\[MDS인텔리전스] 시스템액스 인증서_20260129\\SystemX-SHM_cert.key", "Functions": [ { "Name": "EcuID_SupplierEcuID", diff --git a/Projects/NetStandard/KmsProxy.GUI/App.config b/Projects/NetStandard/KmsProxy.GUI/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Projects/NetStandard/KmsProxy.GUI/Form1.Designer.cs b/Projects/NetStandard/KmsProxy.GUI/Form1.Designer.cs new file mode 100644 index 0000000..da9c18a --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/Form1.Designer.cs @@ -0,0 +1,1128 @@ +namespace KmsProxy.GUI +{ + partial class Form1 + { + /// + /// 필수 디자이너 변수입니다. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 사용 중인 모든 리소스를 정리합니다. + /// + /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form 디자이너에서 생성한 코드 + + /// + /// 디자이너 지원에 필요한 메서드입니다. + /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요. + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.label1 = new System.Windows.Forms.Label(); + this.textHost = new System.Windows.Forms.TextBox(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.tabPage3 = new System.Windows.Forms.TabPage(); + this.tabPage4 = new System.Windows.Forms.TabPage(); + this.panel2 = new System.Windows.Forms.Panel(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.richTextBox2 = new System.Windows.Forms.RichTextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.textPort = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panel3 = new System.Windows.Forms.Panel(); + this.label6 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.richTextBox3 = new System.Windows.Forms.RichTextBox(); + this.button2 = new System.Windows.Forms.Button(); + this.richTextBox4 = new System.Windows.Forms.RichTextBox(); + this.panel4 = new System.Windows.Forms.Panel(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.richTextBox5 = new System.Windows.Forms.RichTextBox(); + this.button3 = new System.Windows.Forms.Button(); + this.richTextBox6 = new System.Windows.Forms.RichTextBox(); + this.panel5 = new System.Windows.Forms.Panel(); + this.label12 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.richTextBox7 = new System.Windows.Forms.RichTextBox(); + this.button4 = new System.Windows.Forms.Button(); + this.richTextBox8 = new System.Windows.Forms.RichTextBox(); + this.panel6 = new System.Windows.Forms.Panel(); + this.label15 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.richTextBox9 = new System.Windows.Forms.RichTextBox(); + this.button5 = new System.Windows.Forms.Button(); + this.richTextBox10 = new System.Windows.Forms.RichTextBox(); + this.panel7 = new System.Windows.Forms.Panel(); + this.label18 = new System.Windows.Forms.Label(); + this.label19 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.richTextBox11 = new System.Windows.Forms.RichTextBox(); + this.button6 = new System.Windows.Forms.Button(); + this.richTextBox12 = new System.Windows.Forms.RichTextBox(); + this.panel8 = new System.Windows.Forms.Panel(); + this.label21 = new System.Windows.Forms.Label(); + this.label22 = new System.Windows.Forms.Label(); + this.label23 = new System.Windows.Forms.Label(); + this.richTextBox13 = new System.Windows.Forms.RichTextBox(); + this.button7 = new System.Windows.Forms.Button(); + this.richTextBox14 = new System.Windows.Forms.RichTextBox(); + this.panel9 = new System.Windows.Forms.Panel(); + this.label24 = new System.Windows.Forms.Label(); + this.label25 = new System.Windows.Forms.Label(); + this.label26 = new System.Windows.Forms.Label(); + this.richTextBox15 = new System.Windows.Forms.RichTextBox(); + this.button8 = new System.Windows.Forms.Button(); + this.richTextBox16 = new System.Windows.Forms.RichTextBox(); + this.panel10 = new System.Windows.Forms.Panel(); + this.label27 = new System.Windows.Forms.Label(); + this.label28 = new System.Windows.Forms.Label(); + this.label29 = new System.Windows.Forms.Label(); + this.richTextBox17 = new System.Windows.Forms.RichTextBox(); + this.button9 = new System.Windows.Forms.Button(); + this.richTextBox18 = new System.Windows.Forms.RichTextBox(); + this.panel11 = new System.Windows.Forms.Panel(); + this.label30 = new System.Windows.Forms.Label(); + this.label31 = new System.Windows.Forms.Label(); + this.label32 = new System.Windows.Forms.Label(); + this.richTextBox19 = new System.Windows.Forms.RichTextBox(); + this.button10 = new System.Windows.Forms.Button(); + this.richTextBox20 = new System.Windows.Forms.RichTextBox(); + this.panel12 = new System.Windows.Forms.Panel(); + this.label33 = new System.Windows.Forms.Label(); + this.label34 = new System.Windows.Forms.Label(); + this.label35 = new System.Windows.Forms.Label(); + this.richTextBox21 = new System.Windows.Forms.RichTextBox(); + this.button11 = new System.Windows.Forms.Button(); + this.richTextBox22 = new System.Windows.Forms.RichTextBox(); + this.panel1.SuspendLayout(); + this.tabControl1.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.tabPage2.SuspendLayout(); + this.tabPage3.SuspendLayout(); + this.tabPage4.SuspendLayout(); + this.panel2.SuspendLayout(); + this.panel3.SuspendLayout(); + this.panel4.SuspendLayout(); + this.panel5.SuspendLayout(); + this.panel6.SuspendLayout(); + this.panel7.SuspendLayout(); + this.panel8.SuspendLayout(); + this.panel9.SuspendLayout(); + this.panel10.SuspendLayout(); + this.panel11.SuspendLayout(); + this.panel12.SuspendLayout(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Controls.Add(this.textPort); + this.panel1.Controls.Add(this.label4); + this.panel1.Controls.Add(this.textHost); + this.panel1.Controls.Add(this.label1); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(1036, 55); + this.panel1.TabIndex = 0; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(23, 24); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(30, 12); + this.label1.TabIndex = 0; + this.label1.Text = "Host"; + // + // textHost + // + this.textHost.Location = new System.Drawing.Point(57, 19); + this.textHost.Name = "textHost"; + this.textHost.Size = new System.Drawing.Size(153, 21); + this.textHost.TabIndex = 1; + this.textHost.Text = "127.0.0.1"; + // + // tabControl1 + // + this.tabControl1.Controls.Add(this.tabPage1); + this.tabControl1.Controls.Add(this.tabPage2); + this.tabControl1.Controls.Add(this.tabPage3); + this.tabControl1.Controls.Add(this.tabPage4); + this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabControl1.Location = new System.Drawing.Point(0, 55); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(1036, 835); + this.tabControl1.TabIndex = 1; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.panel2); + this.tabPage1.Location = new System.Drawing.Point(4, 22); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(1028, 531); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "EcuID"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.panel4); + this.tabPage2.Controls.Add(this.panel3); + this.tabPage2.Location = new System.Drawing.Point(4, 22); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(1028, 531); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "MasterECUKey"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // tabPage3 + // + this.tabPage3.Controls.Add(this.panel8); + this.tabPage3.Controls.Add(this.panel7); + this.tabPage3.Controls.Add(this.panel6); + this.tabPage3.Controls.Add(this.panel5); + this.tabPage3.Location = new System.Drawing.Point(4, 22); + this.tabPage3.Name = "tabPage3"; + this.tabPage3.Padding = new System.Windows.Forms.Padding(3); + this.tabPage3.Size = new System.Drawing.Size(1028, 809); + this.tabPage3.TabIndex = 2; + this.tabPage3.Text = "SupplierSymmKey"; + this.tabPage3.UseVisualStyleBackColor = true; + // + // tabPage4 + // + this.tabPage4.Controls.Add(this.panel12); + this.tabPage4.Controls.Add(this.panel11); + this.tabPage4.Controls.Add(this.panel10); + this.tabPage4.Controls.Add(this.panel9); + this.tabPage4.Location = new System.Drawing.Point(4, 22); + this.tabPage4.Name = "tabPage4"; + this.tabPage4.Padding = new System.Windows.Forms.Padding(3); + this.tabPage4.Size = new System.Drawing.Size(1028, 809); + this.tabPage4.TabIndex = 3; + this.tabPage4.Text = "SecOCKey"; + this.tabPage4.UseVisualStyleBackColor = true; + // + // panel2 + // + this.panel2.Controls.Add(this.label5); + this.panel2.Controls.Add(this.label3); + this.panel2.Controls.Add(this.label2); + this.panel2.Controls.Add(this.richTextBox2); + this.panel2.Controls.Add(this.button1); + this.panel2.Controls.Add(this.richTextBox1); + this.panel2.Dock = System.Windows.Forms.DockStyle.Top; + this.panel2.Location = new System.Drawing.Point(3, 3); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(1022, 198); + this.panel2.TabIndex = 0; + // + // richTextBox1 + // + this.richTextBox1.Location = new System.Drawing.Point(18, 43); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(493, 139); + this.richTextBox1.TabIndex = 0; + this.richTextBox1.Text = ""; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(391, 15); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(118, 23); + this.button1.TabIndex = 1; + this.button1.Text = "Send"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // richTextBox2 + // + this.richTextBox2.Location = new System.Drawing.Point(517, 43); + this.richTextBox2.Name = "richTextBox2"; + this.richTextBox2.Size = new System.Drawing.Size(493, 139); + this.richTextBox2.TabIndex = 2; + this.richTextBox2.Text = ""; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(16, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(51, 12); + this.label2.TabIndex = 3; + this.label2.Text = "Request"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(515, 26); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(62, 12); + this.label3.TabIndex = 4; + this.label3.Text = "Response"; + // + // textPort + // + this.textPort.Location = new System.Drawing.Point(265, 19); + this.textPort.Name = "textPort"; + this.textPort.Size = new System.Drawing.Size(153, 21); + this.textPort.TabIndex = 3; + this.textPort.Text = "9200"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(231, 24); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(27, 12); + this.label4.TabIndex = 2; + this.label4.Text = "Port"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label5.Location = new System.Drawing.Point(18, 8); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(292, 13); + this.label5.TabIndex = 5; + this.label5.Text = "[POST] /app/automotive/supplierEcuID"; + // + // panel3 + // + this.panel3.Controls.Add(this.label6); + this.panel3.Controls.Add(this.label7); + this.panel3.Controls.Add(this.label8); + this.panel3.Controls.Add(this.richTextBox3); + this.panel3.Controls.Add(this.button2); + this.panel3.Controls.Add(this.richTextBox4); + this.panel3.Dock = System.Windows.Forms.DockStyle.Top; + this.panel3.Location = new System.Drawing.Point(3, 3); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(1022, 198); + this.panel3.TabIndex = 1; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label6.Location = new System.Drawing.Point(18, 8); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(366, 13); + this.label6.TabIndex = 5; + this.label6.Text = "[POST] /app/automotive/supplierKeyProvisioning"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(515, 26); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(62, 12); + this.label7.TabIndex = 4; + this.label7.Text = "Response"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(16, 26); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(51, 12); + this.label8.TabIndex = 3; + this.label8.Text = "Request"; + // + // richTextBox3 + // + this.richTextBox3.Location = new System.Drawing.Point(517, 43); + this.richTextBox3.Name = "richTextBox3"; + this.richTextBox3.Size = new System.Drawing.Size(493, 139); + this.richTextBox3.TabIndex = 2; + this.richTextBox3.Text = ""; + // + // button2 + // + this.button2.Location = new System.Drawing.Point(391, 15); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(118, 23); + this.button2.TabIndex = 1; + this.button2.Text = "Send"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // richTextBox4 + // + this.richTextBox4.Location = new System.Drawing.Point(18, 43); + this.richTextBox4.Name = "richTextBox4"; + this.richTextBox4.Size = new System.Drawing.Size(493, 139); + this.richTextBox4.TabIndex = 0; + this.richTextBox4.Text = ""; + // + // panel4 + // + this.panel4.Controls.Add(this.label9); + this.panel4.Controls.Add(this.label10); + this.panel4.Controls.Add(this.label11); + this.panel4.Controls.Add(this.richTextBox5); + this.panel4.Controls.Add(this.button3); + this.panel4.Controls.Add(this.richTextBox6); + this.panel4.Dock = System.Windows.Forms.DockStyle.Top; + this.panel4.Location = new System.Drawing.Point(3, 201); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(1022, 198); + this.panel4.TabIndex = 2; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label9.Location = new System.Drawing.Point(18, 8); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(355, 13); + this.label9.TabIndex = 5; + this.label9.Text = "[PUT] /app/automotive/supplierKeyProvisioning"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(515, 26); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(62, 12); + this.label10.TabIndex = 4; + this.label10.Text = "Response"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(16, 26); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(51, 12); + this.label11.TabIndex = 3; + this.label11.Text = "Request"; + // + // richTextBox5 + // + this.richTextBox5.Location = new System.Drawing.Point(517, 43); + this.richTextBox5.Name = "richTextBox5"; + this.richTextBox5.Size = new System.Drawing.Size(493, 139); + this.richTextBox5.TabIndex = 2; + this.richTextBox5.Text = ""; + // + // button3 + // + this.button3.Location = new System.Drawing.Point(391, 15); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(118, 23); + this.button3.TabIndex = 1; + this.button3.Text = "Send"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); + // + // richTextBox6 + // + this.richTextBox6.Location = new System.Drawing.Point(18, 43); + this.richTextBox6.Name = "richTextBox6"; + this.richTextBox6.Size = new System.Drawing.Size(493, 139); + this.richTextBox6.TabIndex = 0; + this.richTextBox6.Text = ""; + // + // panel5 + // + this.panel5.Controls.Add(this.label12); + this.panel5.Controls.Add(this.label13); + this.panel5.Controls.Add(this.label14); + this.panel5.Controls.Add(this.richTextBox7); + this.panel5.Controls.Add(this.button4); + this.panel5.Controls.Add(this.richTextBox8); + this.panel5.Dock = System.Windows.Forms.DockStyle.Top; + this.panel5.Location = new System.Drawing.Point(3, 3); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(1022, 198); + this.panel5.TabIndex = 2; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label12.Location = new System.Drawing.Point(18, 8); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(366, 13); + this.label12.TabIndex = 5; + this.label12.Text = "[POST] /app/automotive/supplierKeyProvisioning"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(515, 26); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(62, 12); + this.label13.TabIndex = 4; + this.label13.Text = "Response"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(16, 26); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(51, 12); + this.label14.TabIndex = 3; + this.label14.Text = "Request"; + // + // richTextBox7 + // + this.richTextBox7.Location = new System.Drawing.Point(517, 43); + this.richTextBox7.Name = "richTextBox7"; + this.richTextBox7.Size = new System.Drawing.Size(493, 139); + this.richTextBox7.TabIndex = 2; + this.richTextBox7.Text = ""; + // + // button4 + // + this.button4.Location = new System.Drawing.Point(391, 15); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(118, 23); + this.button4.TabIndex = 1; + this.button4.Text = "Send"; + this.button4.UseVisualStyleBackColor = true; + this.button4.Click += new System.EventHandler(this.button4_Click); + // + // richTextBox8 + // + this.richTextBox8.Location = new System.Drawing.Point(18, 43); + this.richTextBox8.Name = "richTextBox8"; + this.richTextBox8.Size = new System.Drawing.Size(493, 139); + this.richTextBox8.TabIndex = 0; + this.richTextBox8.Text = ""; + // + // panel6 + // + this.panel6.Controls.Add(this.label15); + this.panel6.Controls.Add(this.label16); + this.panel6.Controls.Add(this.label17); + this.panel6.Controls.Add(this.richTextBox9); + this.panel6.Controls.Add(this.button5); + this.panel6.Controls.Add(this.richTextBox10); + this.panel6.Dock = System.Windows.Forms.DockStyle.Top; + this.panel6.Location = new System.Drawing.Point(3, 201); + this.panel6.Name = "panel6"; + this.panel6.Size = new System.Drawing.Size(1022, 198); + this.panel6.TabIndex = 3; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label15.Location = new System.Drawing.Point(18, 8); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(355, 13); + this.label15.TabIndex = 5; + this.label15.Text = "[PUT] /app/automotive/supplierKeyProvisioning"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(515, 26); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(62, 12); + this.label16.TabIndex = 4; + this.label16.Text = "Response"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(16, 26); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(51, 12); + this.label17.TabIndex = 3; + this.label17.Text = "Request"; + // + // richTextBox9 + // + this.richTextBox9.Location = new System.Drawing.Point(517, 43); + this.richTextBox9.Name = "richTextBox9"; + this.richTextBox9.Size = new System.Drawing.Size(493, 139); + this.richTextBox9.TabIndex = 2; + this.richTextBox9.Text = ""; + // + // button5 + // + this.button5.Location = new System.Drawing.Point(391, 15); + this.button5.Name = "button5"; + this.button5.Size = new System.Drawing.Size(118, 23); + this.button5.TabIndex = 1; + this.button5.Text = "Send"; + this.button5.UseVisualStyleBackColor = true; + this.button5.Click += new System.EventHandler(this.button5_Click); + // + // richTextBox10 + // + this.richTextBox10.Location = new System.Drawing.Point(18, 43); + this.richTextBox10.Name = "richTextBox10"; + this.richTextBox10.Size = new System.Drawing.Size(493, 139); + this.richTextBox10.TabIndex = 0; + this.richTextBox10.Text = ""; + // + // panel7 + // + this.panel7.Controls.Add(this.label18); + this.panel7.Controls.Add(this.label19); + this.panel7.Controls.Add(this.label20); + this.panel7.Controls.Add(this.richTextBox11); + this.panel7.Controls.Add(this.button6); + this.panel7.Controls.Add(this.richTextBox12); + this.panel7.Dock = System.Windows.Forms.DockStyle.Top; + this.panel7.Location = new System.Drawing.Point(3, 399); + this.panel7.Name = "panel7"; + this.panel7.Size = new System.Drawing.Size(1022, 198); + this.panel7.TabIndex = 4; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label18.Location = new System.Drawing.Point(18, 8); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(353, 13); + this.label18.TabIndex = 5; + this.label18.Text = "[POST] /app/automotive/supplierKeySyncValue"; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(515, 26); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(62, 12); + this.label19.TabIndex = 4; + this.label19.Text = "Response"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.Location = new System.Drawing.Point(16, 26); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(51, 12); + this.label20.TabIndex = 3; + this.label20.Text = "Request"; + // + // richTextBox11 + // + this.richTextBox11.Location = new System.Drawing.Point(517, 43); + this.richTextBox11.Name = "richTextBox11"; + this.richTextBox11.Size = new System.Drawing.Size(493, 139); + this.richTextBox11.TabIndex = 2; + this.richTextBox11.Text = ""; + // + // button6 + // + this.button6.Location = new System.Drawing.Point(391, 15); + this.button6.Name = "button6"; + this.button6.Size = new System.Drawing.Size(118, 23); + this.button6.TabIndex = 1; + this.button6.Text = "Send"; + this.button6.UseVisualStyleBackColor = true; + this.button6.Click += new System.EventHandler(this.button6_Click); + // + // richTextBox12 + // + this.richTextBox12.Location = new System.Drawing.Point(18, 43); + this.richTextBox12.Name = "richTextBox12"; + this.richTextBox12.Size = new System.Drawing.Size(493, 139); + this.richTextBox12.TabIndex = 0; + this.richTextBox12.Text = ""; + // + // panel8 + // + this.panel8.Controls.Add(this.label21); + this.panel8.Controls.Add(this.label22); + this.panel8.Controls.Add(this.label23); + this.panel8.Controls.Add(this.richTextBox13); + this.panel8.Controls.Add(this.button7); + this.panel8.Controls.Add(this.richTextBox14); + this.panel8.Dock = System.Windows.Forms.DockStyle.Top; + this.panel8.Location = new System.Drawing.Point(3, 597); + this.panel8.Name = "panel8"; + this.panel8.Size = new System.Drawing.Size(1022, 198); + this.panel8.TabIndex = 5; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label21.Location = new System.Drawing.Point(18, 8); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(342, 13); + this.label21.TabIndex = 5; + this.label21.Text = "[PUT] /app/automotive/supplierKeySyncValue"; + // + // label22 + // + this.label22.AutoSize = true; + this.label22.Location = new System.Drawing.Point(515, 26); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(62, 12); + this.label22.TabIndex = 4; + this.label22.Text = "Response"; + // + // label23 + // + this.label23.AutoSize = true; + this.label23.Location = new System.Drawing.Point(16, 26); + this.label23.Name = "label23"; + this.label23.Size = new System.Drawing.Size(51, 12); + this.label23.TabIndex = 3; + this.label23.Text = "Request"; + // + // richTextBox13 + // + this.richTextBox13.Location = new System.Drawing.Point(517, 43); + this.richTextBox13.Name = "richTextBox13"; + this.richTextBox13.Size = new System.Drawing.Size(493, 139); + this.richTextBox13.TabIndex = 2; + this.richTextBox13.Text = ""; + // + // button7 + // + this.button7.Location = new System.Drawing.Point(391, 15); + this.button7.Name = "button7"; + this.button7.Size = new System.Drawing.Size(118, 23); + this.button7.TabIndex = 1; + this.button7.Text = "Send"; + this.button7.UseVisualStyleBackColor = true; + this.button7.Click += new System.EventHandler(this.button7_Click); + // + // richTextBox14 + // + this.richTextBox14.Location = new System.Drawing.Point(18, 43); + this.richTextBox14.Name = "richTextBox14"; + this.richTextBox14.Size = new System.Drawing.Size(493, 139); + this.richTextBox14.TabIndex = 0; + this.richTextBox14.Text = ""; + // + // panel9 + // + this.panel9.Controls.Add(this.label24); + this.panel9.Controls.Add(this.label25); + this.panel9.Controls.Add(this.label26); + this.panel9.Controls.Add(this.richTextBox15); + this.panel9.Controls.Add(this.button8); + this.panel9.Controls.Add(this.richTextBox16); + this.panel9.Dock = System.Windows.Forms.DockStyle.Top; + this.panel9.Location = new System.Drawing.Point(3, 3); + this.panel9.Name = "panel9"; + this.panel9.Size = new System.Drawing.Size(1022, 198); + this.panel9.TabIndex = 3; + // + // label24 + // + this.label24.AutoSize = true; + this.label24.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label24.Location = new System.Drawing.Point(18, 8); + this.label24.Name = "label24"; + this.label24.Size = new System.Drawing.Size(366, 13); + this.label24.TabIndex = 5; + this.label24.Text = "[POST] /app/automotive/supplierKeyProvisioning"; + // + // label25 + // + this.label25.AutoSize = true; + this.label25.Location = new System.Drawing.Point(515, 26); + this.label25.Name = "label25"; + this.label25.Size = new System.Drawing.Size(62, 12); + this.label25.TabIndex = 4; + this.label25.Text = "Response"; + // + // label26 + // + this.label26.AutoSize = true; + this.label26.Location = new System.Drawing.Point(16, 26); + this.label26.Name = "label26"; + this.label26.Size = new System.Drawing.Size(51, 12); + this.label26.TabIndex = 3; + this.label26.Text = "Request"; + // + // richTextBox15 + // + this.richTextBox15.Location = new System.Drawing.Point(517, 43); + this.richTextBox15.Name = "richTextBox15"; + this.richTextBox15.Size = new System.Drawing.Size(493, 139); + this.richTextBox15.TabIndex = 2; + this.richTextBox15.Text = ""; + // + // button8 + // + this.button8.Location = new System.Drawing.Point(391, 15); + this.button8.Name = "button8"; + this.button8.Size = new System.Drawing.Size(118, 23); + this.button8.TabIndex = 1; + this.button8.Text = "Send"; + this.button8.UseVisualStyleBackColor = true; + this.button8.Click += new System.EventHandler(this.button8_Click); + // + // richTextBox16 + // + this.richTextBox16.Location = new System.Drawing.Point(18, 43); + this.richTextBox16.Name = "richTextBox16"; + this.richTextBox16.Size = new System.Drawing.Size(493, 139); + this.richTextBox16.TabIndex = 0; + this.richTextBox16.Text = ""; + // + // panel10 + // + this.panel10.Controls.Add(this.label27); + this.panel10.Controls.Add(this.label28); + this.panel10.Controls.Add(this.label29); + this.panel10.Controls.Add(this.richTextBox17); + this.panel10.Controls.Add(this.button9); + this.panel10.Controls.Add(this.richTextBox18); + this.panel10.Dock = System.Windows.Forms.DockStyle.Top; + this.panel10.Location = new System.Drawing.Point(3, 201); + this.panel10.Name = "panel10"; + this.panel10.Size = new System.Drawing.Size(1022, 198); + this.panel10.TabIndex = 4; + // + // label27 + // + this.label27.AutoSize = true; + this.label27.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label27.Location = new System.Drawing.Point(18, 8); + this.label27.Name = "label27"; + this.label27.Size = new System.Drawing.Size(355, 13); + this.label27.TabIndex = 5; + this.label27.Text = "[PUT] /app/automotive/supplierKeyProvisioning"; + // + // label28 + // + this.label28.AutoSize = true; + this.label28.Location = new System.Drawing.Point(515, 26); + this.label28.Name = "label28"; + this.label28.Size = new System.Drawing.Size(62, 12); + this.label28.TabIndex = 4; + this.label28.Text = "Response"; + // + // label29 + // + this.label29.AutoSize = true; + this.label29.Location = new System.Drawing.Point(16, 26); + this.label29.Name = "label29"; + this.label29.Size = new System.Drawing.Size(51, 12); + this.label29.TabIndex = 3; + this.label29.Text = "Request"; + // + // richTextBox17 + // + this.richTextBox17.Location = new System.Drawing.Point(517, 43); + this.richTextBox17.Name = "richTextBox17"; + this.richTextBox17.Size = new System.Drawing.Size(493, 139); + this.richTextBox17.TabIndex = 2; + this.richTextBox17.Text = ""; + // + // button9 + // + this.button9.Location = new System.Drawing.Point(391, 15); + this.button9.Name = "button9"; + this.button9.Size = new System.Drawing.Size(118, 23); + this.button9.TabIndex = 1; + this.button9.Text = "Send"; + this.button9.UseVisualStyleBackColor = true; + this.button9.Click += new System.EventHandler(this.button9_Click); + // + // richTextBox18 + // + this.richTextBox18.Location = new System.Drawing.Point(18, 43); + this.richTextBox18.Name = "richTextBox18"; + this.richTextBox18.Size = new System.Drawing.Size(493, 139); + this.richTextBox18.TabIndex = 0; + this.richTextBox18.Text = ""; + // + // panel11 + // + this.panel11.Controls.Add(this.label30); + this.panel11.Controls.Add(this.label31); + this.panel11.Controls.Add(this.label32); + this.panel11.Controls.Add(this.richTextBox19); + this.panel11.Controls.Add(this.button10); + this.panel11.Controls.Add(this.richTextBox20); + this.panel11.Dock = System.Windows.Forms.DockStyle.Top; + this.panel11.Location = new System.Drawing.Point(3, 399); + this.panel11.Name = "panel11"; + this.panel11.Size = new System.Drawing.Size(1022, 198); + this.panel11.TabIndex = 5; + // + // label30 + // + this.label30.AutoSize = true; + this.label30.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label30.Location = new System.Drawing.Point(18, 8); + this.label30.Name = "label30"; + this.label30.Size = new System.Drawing.Size(353, 13); + this.label30.TabIndex = 5; + this.label30.Text = "[POST] /app/automotive/supplierKeySyncValue"; + // + // label31 + // + this.label31.AutoSize = true; + this.label31.Location = new System.Drawing.Point(515, 26); + this.label31.Name = "label31"; + this.label31.Size = new System.Drawing.Size(62, 12); + this.label31.TabIndex = 4; + this.label31.Text = "Response"; + // + // label32 + // + this.label32.AutoSize = true; + this.label32.Location = new System.Drawing.Point(16, 26); + this.label32.Name = "label32"; + this.label32.Size = new System.Drawing.Size(51, 12); + this.label32.TabIndex = 3; + this.label32.Text = "Request"; + // + // richTextBox19 + // + this.richTextBox19.Location = new System.Drawing.Point(517, 43); + this.richTextBox19.Name = "richTextBox19"; + this.richTextBox19.Size = new System.Drawing.Size(493, 139); + this.richTextBox19.TabIndex = 2; + this.richTextBox19.Text = ""; + // + // button10 + // + this.button10.Location = new System.Drawing.Point(391, 15); + this.button10.Name = "button10"; + this.button10.Size = new System.Drawing.Size(118, 23); + this.button10.TabIndex = 1; + this.button10.Text = "Send"; + this.button10.UseVisualStyleBackColor = true; + this.button10.Click += new System.EventHandler(this.button10_Click); + // + // richTextBox20 + // + this.richTextBox20.Location = new System.Drawing.Point(18, 43); + this.richTextBox20.Name = "richTextBox20"; + this.richTextBox20.Size = new System.Drawing.Size(493, 139); + this.richTextBox20.TabIndex = 0; + this.richTextBox20.Text = ""; + // + // panel12 + // + this.panel12.Controls.Add(this.label33); + this.panel12.Controls.Add(this.label34); + this.panel12.Controls.Add(this.label35); + this.panel12.Controls.Add(this.richTextBox21); + this.panel12.Controls.Add(this.button11); + this.panel12.Controls.Add(this.richTextBox22); + this.panel12.Dock = System.Windows.Forms.DockStyle.Top; + this.panel12.Location = new System.Drawing.Point(3, 597); + this.panel12.Name = "panel12"; + this.panel12.Size = new System.Drawing.Size(1022, 198); + this.panel12.TabIndex = 6; + // + // label33 + // + this.label33.AutoSize = true; + this.label33.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label33.Location = new System.Drawing.Point(18, 8); + this.label33.Name = "label33"; + this.label33.Size = new System.Drawing.Size(342, 13); + this.label33.TabIndex = 5; + this.label33.Text = "[PUT] /app/automotive/supplierKeySyncValue"; + // + // label34 + // + this.label34.AutoSize = true; + this.label34.Location = new System.Drawing.Point(515, 26); + this.label34.Name = "label34"; + this.label34.Size = new System.Drawing.Size(62, 12); + this.label34.TabIndex = 4; + this.label34.Text = "Response"; + // + // label35 + // + this.label35.AutoSize = true; + this.label35.Location = new System.Drawing.Point(16, 26); + this.label35.Name = "label35"; + this.label35.Size = new System.Drawing.Size(51, 12); + this.label35.TabIndex = 3; + this.label35.Text = "Request"; + // + // richTextBox21 + // + this.richTextBox21.Location = new System.Drawing.Point(517, 43); + this.richTextBox21.Name = "richTextBox21"; + this.richTextBox21.Size = new System.Drawing.Size(493, 139); + this.richTextBox21.TabIndex = 2; + this.richTextBox21.Text = ""; + // + // button11 + // + this.button11.Location = new System.Drawing.Point(391, 15); + this.button11.Name = "button11"; + this.button11.Size = new System.Drawing.Size(118, 23); + this.button11.TabIndex = 1; + this.button11.Text = "Send"; + this.button11.UseVisualStyleBackColor = true; + this.button11.Click += new System.EventHandler(this.button11_Click); + // + // richTextBox22 + // + this.richTextBox22.Location = new System.Drawing.Point(18, 43); + this.richTextBox22.Name = "richTextBox22"; + this.richTextBox22.Size = new System.Drawing.Size(493, 139); + this.richTextBox22.TabIndex = 0; + this.richTextBox22.Text = ""; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1036, 890); + this.Controls.Add(this.tabControl1); + this.Controls.Add(this.panel1); + this.Name = "Form1"; + this.Text = "Form1"; + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.tabControl1.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); + this.tabPage2.ResumeLayout(false); + this.tabPage3.ResumeLayout(false); + this.tabPage4.ResumeLayout(false); + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + this.panel3.ResumeLayout(false); + this.panel3.PerformLayout(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + this.panel5.ResumeLayout(false); + this.panel5.PerformLayout(); + this.panel6.ResumeLayout(false); + this.panel6.PerformLayout(); + this.panel7.ResumeLayout(false); + this.panel7.PerformLayout(); + this.panel8.ResumeLayout(false); + this.panel8.PerformLayout(); + this.panel9.ResumeLayout(false); + this.panel9.PerformLayout(); + this.panel10.ResumeLayout(false); + this.panel10.PerformLayout(); + this.panel11.ResumeLayout(false); + this.panel11.PerformLayout(); + this.panel12.ResumeLayout(false); + this.panel12.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.TextBox textHost; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TabControl tabControl1; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.TabPage tabPage2; + private System.Windows.Forms.TabPage tabPage3; + private System.Windows.Forms.TabPage tabPage4; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.RichTextBox richTextBox2; + private System.Windows.Forms.TextBox textPort; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.RichTextBox richTextBox3; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.RichTextBox richTextBox4; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.RichTextBox richTextBox5; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.RichTextBox richTextBox6; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.RichTextBox richTextBox7; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.RichTextBox richTextBox8; + private System.Windows.Forms.Panel panel6; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.RichTextBox richTextBox9; + private System.Windows.Forms.Button button5; + private System.Windows.Forms.RichTextBox richTextBox10; + private System.Windows.Forms.Panel panel7; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.RichTextBox richTextBox11; + private System.Windows.Forms.Button button6; + private System.Windows.Forms.RichTextBox richTextBox12; + private System.Windows.Forms.Panel panel8; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label23; + private System.Windows.Forms.RichTextBox richTextBox13; + private System.Windows.Forms.Button button7; + private System.Windows.Forms.RichTextBox richTextBox14; + private System.Windows.Forms.Panel panel9; + private System.Windows.Forms.Label label24; + private System.Windows.Forms.Label label25; + private System.Windows.Forms.Label label26; + private System.Windows.Forms.RichTextBox richTextBox15; + private System.Windows.Forms.Button button8; + private System.Windows.Forms.RichTextBox richTextBox16; + private System.Windows.Forms.Panel panel10; + private System.Windows.Forms.Label label27; + private System.Windows.Forms.Label label28; + private System.Windows.Forms.Label label29; + private System.Windows.Forms.RichTextBox richTextBox17; + private System.Windows.Forms.Button button9; + private System.Windows.Forms.RichTextBox richTextBox18; + private System.Windows.Forms.Panel panel11; + private System.Windows.Forms.Label label30; + private System.Windows.Forms.Label label31; + private System.Windows.Forms.Label label32; + private System.Windows.Forms.RichTextBox richTextBox19; + private System.Windows.Forms.Button button10; + private System.Windows.Forms.RichTextBox richTextBox20; + private System.Windows.Forms.Panel panel12; + private System.Windows.Forms.Label label33; + private System.Windows.Forms.Label label34; + private System.Windows.Forms.Label label35; + private System.Windows.Forms.RichTextBox richTextBox21; + private System.Windows.Forms.Button button11; + private System.Windows.Forms.RichTextBox richTextBox22; + } +} + diff --git a/Projects/NetStandard/KmsProxy.GUI/Form1.cs b/Projects/NetStandard/KmsProxy.GUI/Form1.cs new file mode 100644 index 0000000..886832d --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/Form1.cs @@ -0,0 +1,226 @@ +using KmsProxy.Models; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace KmsProxy.GUI +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + + if(Int32.TryParse(textPort.Text, out int port) == true) + { + KmsProxy.Port = port; + } + else + { + Console.WriteLine("Port Error"); + } + Init(); + } + + private void Init() + { + //ecuid + var request1 = new EcuID.Request_SupplierEcuID(); + richTextBox1.Text = JsonConvert.SerializeObject(request1, Formatting.Indented); + + //master key + var request2 = new MasterEcuKey.Request_SupplierKeyProvisioning(); + richTextBox4.Text = JsonConvert.SerializeObject(request2, Formatting.Indented); + + var request3 = new MasterEcuKey.Request_SupplierKeyProvisioning_Result(); + richTextBox6.Text = JsonConvert.SerializeObject(request3, Formatting.Indented); + + //symm + var request4 = new SupplierSymmKey.Request_SupplierKeyProvisioning(); + richTextBox8.Text = JsonConvert.SerializeObject(request4, Formatting.Indented); + + var request5 = new SupplierSymmKey.Request_SupplierKeyProvisioning_Result(); + richTextBox10.Text = JsonConvert.SerializeObject(request5, Formatting.Indented); + + var request6 = new SupplierSymmKey.Request_SupplierKeySyncValue(); + richTextBox12.Text = JsonConvert.SerializeObject(request5, Formatting.Indented); + + var request7 = new SupplierSymmKey.Request_SupplierKeySyncValue_Result(); + richTextBox14.Text = JsonConvert.SerializeObject(request5, Formatting.Indented); + + //secoc + var request8 = new SecOCKey.Request_SupplierKeyProvisioning(); + richTextBox16.Text = JsonConvert.SerializeObject(request8, Formatting.Indented); + + var request9 = new SecOCKey.Request_SupplierKeyProvisioning_Result(); + richTextBox18.Text = JsonConvert.SerializeObject(request9, Formatting.Indented); + + var request10 = new SecOCKey.Request_SupplierKeySyncValue(); + richTextBox20.Text = JsonConvert.SerializeObject(request10, Formatting.Indented); + + var request11 = new SecOCKey.Request_SupplierKeySyncValue_Result(); + richTextBox22.Text = JsonConvert.SerializeObject(request11, Formatting.Indented); + } + + private void button1_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox1.Text); + var res = new EcuID.Response_SupplierEcuID(); + + Task.Run(async () => + { + res = await KmsProxy.EcuID_SupplierEcuID(host, request); + }).Wait(); + + richTextBox2.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + + private void button2_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox4.Text); + var res = new MasterEcuKey.Response_SupplierKeyProvisioning(); + + Task.Run(async () => + { + res = await KmsProxy.MasterEcuKey_SupplierKeyProvisioning(host, request); + }).Wait(); + + richTextBox3.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + + private void button3_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox6.Text); + var res = new MasterEcuKey.Response_SupplierKeyProvisioning_Result(); + + Task.Run(async () => + { + res = await KmsProxy.MasterEcuKey_SupplierKeyProvisioningResult(host, request); + }).Wait(); + + richTextBox5.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + + private void button4_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox8.Text); + var res = new SupplierSymmKey.Response_SupplierKeyProvisioning(); + + Task.Run(async () => + { + res = await KmsProxy.SupplierSymmKey_SupplierKeyProvisioning(host, request); + }).Wait(); + + richTextBox7.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + + private void button5_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox10.Text); + var res = new SupplierSymmKey.Response_SupplierKeyProvisioning_Result(); + + Task.Run(async () => + { + res = await KmsProxy.SupplierSymmKey_SupplierKeyProvisioningResult(host, request); + }).Wait(); + + richTextBox9.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + + private void button6_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox12.Text); + var res = new SupplierSymmKey.Response_SupplierKeySyncValue(); + + Task.Run(async () => + { + res = await KmsProxy.SupplierSymmKey_SupplierKeySyncValue(host, request); + }).Wait(); + + richTextBox11.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + + private void button7_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox14.Text); + var res = new SupplierSymmKey.Response_SupplierKeySyncValue_Result(); + + Task.Run(async () => + { + res = await KmsProxy.SupplierSymmKey_SupplierKeySyncValueResult(host, request); + }).Wait(); + + richTextBox13.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + + private void button8_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox16.Text); + var res = new SecOCKey.Response_SupplierKeyProvisioning(); + + Task.Run(async () => + { + res = await KmsProxy.SecOCKey_SupplierKeyProvisioning(host, request); + }).Wait(); + + richTextBox15.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + + private void button9_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox18.Text); + var res = new SecOCKey.Response_SupplierKeyProvisioning_Result(); + + Task.Run(async () => + { + res = await KmsProxy.SecOCKey_SupplierKeyProvisioningResult(host, request); + }).Wait(); + + richTextBox17.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + + private void button10_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox20.Text); + var res = new SecOCKey.Response_SupplierKeySyncValue(); + + Task.Run(async () => + { + res = await KmsProxy.SecOCKey_SupplierKeySyncValue(host, request); + }).Wait(); + + richTextBox19.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + + private void button11_Click(object sender, EventArgs e) + { + var host = textHost.Text; + var request = JsonConvert.DeserializeObject(richTextBox22.Text); + var res = new SecOCKey.Response_SupplierKeySyncValue_Result(); + + Task.Run(async () => + { + res = await KmsProxy.SecOCKey_SupplierKeySyncValueResult(host, request); + }).Wait(); + + richTextBox21.Text = JsonConvert.SerializeObject(res, Formatting.Indented); + } + } +} diff --git a/Projects/NetStandard/KmsProxy.GUI/Form1.resx b/Projects/NetStandard/KmsProxy.GUI/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Projects/NetStandard/KmsProxy.GUI/KmsProxy.GUI.csproj b/Projects/NetStandard/KmsProxy.GUI/KmsProxy.GUI.csproj new file mode 100644 index 0000000..1e86d5c --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/KmsProxy.GUI.csproj @@ -0,0 +1,93 @@ + + + + + Debug + AnyCPU + {D93A2424-C404-4731-8835-FC0AEA158310} + WinExe + KmsProxy.GUI + KmsProxy.GUI + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Newtonsoft.Json.13.0.4\lib\net45\Newtonsoft.Json.dll + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {73824acb-4fb9-4e11-9a86-e05471b3c979} + KmsProxy + + + + \ No newline at end of file diff --git a/Projects/NetStandard/KmsProxy.GUI/Program.cs b/Projects/NetStandard/KmsProxy.GUI/Program.cs new file mode 100644 index 0000000..5eef7f1 --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace KmsProxy.GUI +{ + internal static class Program + { + /// + /// 해당 애플리케이션의 주 진입점입니다. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Projects/NetStandard/KmsProxy.GUI/Properties/AssemblyInfo.cs b/Projects/NetStandard/KmsProxy.GUI/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..71d398d --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 +// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 +// 이러한 특성 값을 변경하세요. +[assembly: AssemblyTitle("KmsProxy.GUI")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("KmsProxy.GUI")] +[assembly: AssemblyCopyright("Copyright © 2026")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 +// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 +// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. +[assembly: ComVisible(false)] + +// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. +[assembly: Guid("d93a2424-c404-4731-8835-fc0aea158310")] + +// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. +// +// 주 버전 +// 부 버전 +// 빌드 번호 +// 수정 버전 +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Projects/NetStandard/KmsProxy.GUI/Properties/Resources.Designer.cs b/Projects/NetStandard/KmsProxy.GUI/Properties/Resources.Designer.cs new file mode 100644 index 0000000..fd54abe --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 도구를 사용하여 생성되었습니다. +// 런타임 버전:4.0.30319.42000 +// +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 +// 이러한 변경 내용이 손실됩니다. +// +//------------------------------------------------------------------------------ + +namespace KmsProxy.GUI.Properties +{ + + + /// + /// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. + /// + // 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder + // 클래스에서 자동으로 생성되었습니다. + // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 + // ResGen을 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("KmsProxy.GUI.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을 + /// 재정의합니다. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Projects/NetStandard/KmsProxy.GUI/Properties/Resources.resx b/Projects/NetStandard/KmsProxy.GUI/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Projects/NetStandard/KmsProxy.GUI/Properties/Settings.Designer.cs b/Projects/NetStandard/KmsProxy.GUI/Properties/Settings.Designer.cs new file mode 100644 index 0000000..6425b61 --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace KmsProxy.GUI.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Projects/NetStandard/KmsProxy.GUI/Properties/Settings.settings b/Projects/NetStandard/KmsProxy.GUI/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Projects/NetStandard/KmsProxy.GUI/packages.config b/Projects/NetStandard/KmsProxy.GUI/packages.config new file mode 100644 index 0000000..8f8cd00 --- /dev/null +++ b/Projects/NetStandard/KmsProxy.GUI/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Projects/NetStandard/KmsProxy/Models/Packet.cs b/Projects/NetStandard/KmsProxy/Models/Packet.cs index 2950b0f..0f54de0 100644 --- a/Projects/NetStandard/KmsProxy/Models/Packet.cs +++ b/Projects/NetStandard/KmsProxy/Models/Packet.cs @@ -102,6 +102,7 @@ namespace KmsProxy.Models { public string ProvisioningType { get; set; } = string.Empty; public string EcuID { get; set; } = string.Empty; + public string KeyID { get; set; } = string.Empty; } public class Response_SupplierKeySyncValue : Response_Common { @@ -177,6 +178,7 @@ namespace KmsProxy.Models { public string ProvisioningType { get; set; } = string.Empty; public string EcuID { get; set; } = string.Empty; + public string KeyID { get; set; } = string.Empty; } public class Response_SupplierKeySyncValue : Response_Common { diff --git a/Projects/NetStandard/NetStandard.sln b/Projects/NetStandard/NetStandard.sln index 5f566c4..0fa6209 100644 --- a/Projects/NetStandard/NetStandard.sln +++ b/Projects/NetStandard/NetStandard.sln @@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KmsProxy", "KmsProxy\KmsPro EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeficoMailService", "KeficoMailService\KeficoMailService.csproj", "{63FF04EE-D1A5-4406-9267-1EE1E9FBB9E7}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KmsProxy.GUI", "KmsProxy.GUI\KmsProxy.GUI.csproj", "{D93A2424-C404-4731-8835-FC0AEA158310}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -39,6 +41,10 @@ Global {63FF04EE-D1A5-4406-9267-1EE1E9FBB9E7}.Debug|Any CPU.Build.0 = Debug|Any CPU {63FF04EE-D1A5-4406-9267-1EE1E9FBB9E7}.Release|Any CPU.ActiveCfg = Release|Any CPU {63FF04EE-D1A5-4406-9267-1EE1E9FBB9E7}.Release|Any CPU.Build.0 = Release|Any CPU + {D93A2424-C404-4731-8835-FC0AEA158310}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D93A2424-C404-4731-8835-FC0AEA158310}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D93A2424-C404-4731-8835-FC0AEA158310}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D93A2424-C404-4731-8835-FC0AEA158310}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Projects/NetStandard/PlayGround.NetFramework/Program.cs b/Projects/NetStandard/PlayGround.NetFramework/Program.cs index 0d14ab1..b5028a9 100644 --- a/Projects/NetStandard/PlayGround.NetFramework/Program.cs +++ b/Projects/NetStandard/PlayGround.NetFramework/Program.cs @@ -2,14 +2,51 @@ using Newtonsoft.Json; using System; using System.Collections.Generic; +using System.Globalization; using System.Threading.Tasks; namespace PlayGround.NetFramework { + public static class Date + { + public static string ToKst24String(DateTimeOffset dateTime) + { + var kstZone = TimeZoneInfo.FindSystemTimeZoneById("Korea Standard Time"); + var kst = TimeZoneInfo.ConvertTime(dateTime, kstZone); + + return kst.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture); + } + } + internal class Program { static void Main(string[] args) { + // 각 국가 TimeZone 가져오기 + var indiaZone = TimeZoneInfo.FindSystemTimeZoneById("India Standard Time"); + var vietnamZone = TimeZoneInfo.FindSystemTimeZoneById("SE Asia Standard Time"); + var usaEasternZone = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"); + var kstZone = TimeZoneInfo.FindSystemTimeZoneById("Korea Standard Time"); + + // 각 국가 현재 시간 생성 + DateTimeOffset indiaNow = TimeZoneInfo.ConvertTime(DateTimeOffset.UtcNow, indiaZone); + DateTimeOffset vietnamNow = TimeZoneInfo.ConvertTime(DateTimeOffset.UtcNow, vietnamZone); + DateTimeOffset usaNow = TimeZoneInfo.ConvertTime(DateTimeOffset.UtcNow, usaEasternZone); + + Console.WriteLine("=== 원본 시간 ==="); + Console.WriteLine($"India : {indiaNow:yyyy-MM-dd HH:mm:ss}"); + Console.WriteLine($"Vietnam : {vietnamNow:yyyy-MM-dd HH:mm:ss}"); + Console.WriteLine($"USA(ET) : {usaNow:yyyy-MM-dd HH:mm:ss}"); + + Console.WriteLine(); + Console.WriteLine("=== KST 변환 ==="); + + Console.WriteLine($"India → KST : {Date.ToKst24String(indiaNow)}"); + Console.WriteLine($"Vietnam → KST : {Date.ToKst24String(vietnamNow)}"); + Console.WriteLine($"USA → KST : {Date.ToKst24String(usaNow)}"); + + return; + //html Send //Manager manager = new Manager(); diff --git a/Projects/WebApi/WebApi.Project.ProxyKMS/Models/Packet.cs b/Projects/WebApi/WebApi.Project.ProxyKMS/Models/Packet.cs index 032369e..4515ccd 100644 --- a/Projects/WebApi/WebApi.Project.ProxyKMS/Models/Packet.cs +++ b/Projects/WebApi/WebApi.Project.ProxyKMS/Models/Packet.cs @@ -1,5 +1,6 @@ using Microsoft.OpenApi.Writers; using System.ComponentModel.DataAnnotations; +using System.Security.Cryptography.Xml; namespace WebApi.Project.ProxyKMS.Models { @@ -101,6 +102,7 @@ namespace WebApi.Project.ProxyKMS.Models { public string ProvisioningType { get; set; } = string.Empty; public string EcuID { get; set; } = string.Empty; + public string KeyID { get; set; } = string.Empty; } public class Response_SupplierKeySyncValue : Response_Common { @@ -176,6 +178,7 @@ namespace WebApi.Project.ProxyKMS.Models { public string ProvisioningType { get; set; } = string.Empty; public string EcuID { get; set; } = string.Empty; + public string KeyID { get; set; } = string.Empty; } public class Response_SupplierKeySyncValue : Response_Common {