From 4869a89ab96a75bf11d0cdc9d96ffb90601eedb2 Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 13 Sep 2002 16:11:46 +0000 Subject: [PATCH] Certifcate wizard added, obsolete Widgets removed --- MainWindowX509.cpp | 76 ++- Makefile.in | 6 +- NewX509.ui | 1215 ++++++++++++++++++++++++++++++++++++++++++++ NewX509_0.cpp | 122 ----- NewX509_0.h | 83 --- NewX509_0.ui | 565 -------------------- NewX509_1.ui | 302 ----------- NewX509_2.ui | 671 ------------------------ NewX509_3.ui | 483 ------------------ PassRead.ui | 38 +- PassWrite.ui | 2 +- 11 files changed, 1256 insertions(+), 2307 deletions(-) create mode 100644 NewX509.ui delete mode 100644 NewX509_0.cpp delete mode 100644 NewX509_0.h delete mode 100644 NewX509_0.ui delete mode 100644 NewX509_1.ui delete mode 100644 NewX509_2.ui delete mode 100644 NewX509_3.ui diff --git a/MainWindowX509.cpp b/MainWindowX509.cpp index 5a71cd2b..0dd395f2 100644 --- a/MainWindowX509.cpp +++ b/MainWindowX509.cpp @@ -60,21 +60,22 @@ void MainWindow::newCert() pki_key *signkey = NULL, *clientkey = NULL; int serial = 42; // :-) int i, retval; - NewX509_0 *dlg1 = new NewX509_0(this, NULL, keys, reqs); - NewX509_1_UI *dlg2 = new NewX509_1_UI(this, NULL); + NewX509 *dlg = new NewX509(this, NULL, true, 0); +/* NewX509_1_UI *dlg2 = new NewX509_1_UI(this, NULL); NewX509_2_UI *dlg3 = new NewX509_2_UI(this, NULL); NewX509_3_UI *dlg4 = new NewX509_3_UI(this, NULL); NewX509 *dlg[4] = {dlg1, dlg2, dlg3, dlg4}; CERR <<" Everything created" << endl; // preset dlg 2 selection of signer +*/ QStringList strlist = certs->getSignerDesc(); if (strlist.isEmpty()) { - dlg2->foreignSignRB->setDisabled(true); - dlg2->certList->setDisabled(true); + dlg->foreignSignRB->setDisabled(true); + dlg->certList->setDisabled(true); } else { - dlg2->certList->insertStringList(strlist); + dlg->certList->insertStringList(strlist); } CERR <<" Everything created A" << endl; // preset dialogs with images @@ -85,46 +86,43 @@ void MainWindow::newCert() CERR <<" Everything created V" << endl; i=0; - if (!dlg1->exec()) return; - if (!dlg2->exec()) return; - if (!dlg3->exec()) return; - if (!dlg4->exec()) return; + if (!dlg->exec()) return; // Step 1 - Subject and key - if (dlg1->fromDataRB->isChecked()) { - clientkey = (pki_key *)keys->getSelectedPKI(dlg1->keyList->currentText().latin1()); + if (dlg->fromDataRB->isChecked()) { + clientkey = (pki_key *)keys->getSelectedPKI(dlg->keyList->currentText().latin1()); if (opensslError(clientkey)) return; - string cn = dlg1->commonName->text().latin1(); - string c = dlg1->countryName->text().latin1(); - string l = dlg1->localityName->text().latin1(); - string st = dlg1->stateOrProvinceName->text().latin1(); - string o = dlg1->organisationName->text().latin1(); - string ou = dlg1->organisationalUnitName->text().latin1(); - string email = dlg1->emailAddress->text().latin1(); - string desc = dlg1->description->text().latin1(); + string cn = dlg->commonName->text().latin1(); + string c = dlg->countryName->text().latin1(); + string l = dlg->localityName->text().latin1(); + string st = dlg->stateOrProvinceName->text().latin1(); + string o = dlg->organisationName->text().latin1(); + string ou = dlg->organisationalUnitName->text().latin1(); + string email = dlg->emailAddress->text().latin1(); + string desc = dlg->description->text().latin1(); req = new pki_x509req(clientkey, cn,c,l,st,o,ou,email,desc,""); if (opensslError(req)) return; } else { // A PKCS#10 Request was selected - req = (pki_x509req *)reqs->getSelectedPKI(dlg1->reqList->currentText().latin1()); + req = (pki_x509req *)reqs->getSelectedPKI(dlg->reqList->currentText().latin1()); if (opensslError(req)) return; //clientkey = req->getKey(); } // Step 2 - select Signing /* - if (dlg1->fromDataRB->isChecked()) + if (dlg->fromDataRB->isChecked()) // if we entered subjectdata, selfsigning is default - dlg2->selfSignRB->setChecked(true); + dlg->selfSignRB->setChecked(true); else // for PKCS#10 signing foreignKey signing is default - dlg2->foreignSignRB->setChecked(true); + dlg->foreignSignRB->setChecked(true); */ - if (dlg2->foreignSignRB->isChecked()) { - signcert = (pki_x509 *)certs->getSelectedPKI(dlg2->certList->currentText().latin1()); + if (dlg->foreignSignRB->isChecked()) { + signcert = (pki_x509 *)certs->getSelectedPKI(dlg->certList->currentText().latin1()); if (opensslError(signcert)) return; signkey = signcert->getKey(); if (opensslError(signkey)) return; @@ -134,13 +132,13 @@ void MainWindow::newCert() else { signkey = clientkey; bool ok; - serial = dlg2->serialNr->text().toInt(&ok); + serial = dlg->serialNr->text().toInt(&ok); if (!ok) serial = 0; } // Step 3 - Choose the Date and all the V3 extensions - if (dlg2->foreignSignRB->isChecked()) { + if (dlg->foreignSignRB->isChecked()) { // increase serial here string serhash = signcert->fingerprint(EVP_md5()) + "serial"; serial = settings->getInt(serhash) + 1; @@ -148,8 +146,8 @@ void MainWindow::newCert() settings->putInt(serhash, serial); } // Date handling - int x = dlg3->validNumber->text().toInt(); - int days = dlg3->validRange->currentItem(); + int x = dlg->validNumber->text().toInt(); + int days = dlg->validRange->currentItem(); if (days == 1) x *= 30; if (days == 2) x *= 365; @@ -159,10 +157,10 @@ void MainWindow::newCert() // handle extensions // basic constraints string constraints; - if (dlg3->bcCritical->isChecked()) constraints = "critical,"; + if (dlg->bcCritical->isChecked()) constraints = "critical,"; constraints +="CA:"; - constraints += dlg3->basicCA->currentText().latin1(); - string pathstr = dlg3->basicPath->text().latin1(); + constraints += dlg->basicCA->currentText().latin1(); + string pathstr = dlg->basicPath->text().latin1(); if (pathstr.length()>0) { constraints += ", pathlen:"; constraints += pathstr; @@ -170,13 +168,13 @@ void MainWindow::newCert() cert->addV3ext(NID_basic_constraints, constraints); CERR << "B-Const:" << constraints << endl; // Subject Key identifier - if (dlg3->subKey->isChecked()) { + if (dlg->subKey->isChecked()) { string subkey="hash"; cert->addV3ext(NID_subject_key_identifier, subkey); CERR << subkey <authKey->isChecked()) { + if (dlg->authKey->isChecked()) { string authkey="keyid,issuer:always"; cert->addV3ext(NID_authority_key_identifier, authkey); CERR << authkey <subAltURL->text().latin1(); + string subAlt = dlg->subAltURL->text().latin1(); //if (subAlt != "") { // key usage @@ -194,7 +192,7 @@ void MainWindow::newCert() QListBoxItem *item; i=0; string keyuse, keyuse1; - while ((item = dlg3->keyUsage->item(i))) { + while ((item = dlg->keyUsage->item(i))) { if (item->selected()){ if (keyuse.length() > 0) keyuse +=", "; keyuse += keyusage[i]; @@ -204,7 +202,7 @@ void MainWindow::newCert() if (keyuse.length() > 0) { keyuse1 = keyuse; - if (dlg3->kuCritical->isChecked()) keyuse1 = "critical, " +keyuse; + if (dlg->kuCritical->isChecked()) keyuse1 = "critical, " +keyuse; cert->addV3ext(NID_key_usage, keyuse1); CERR << "KeyUsage:" <ekeyUsage->item(i))) { + while ((item = dlg->ekeyUsage->item(i))) { if (item->selected()){ if (keyuse.length() > 0) keyuse += ", "; keyuse += ekeyusage[i]; @@ -225,7 +223,7 @@ void MainWindow::newCert() if (keyuse.length() > 0) { keyuse1 = keyuse; - if (dlg3->ekuCritical->isChecked()) keyuse1 = "critical, " +keyuse; + if (dlg->ekuCritical->isChecked()) keyuse1 = "critical, " +keyuse; cert->addV3ext(NID_ext_key_usage, keyuse1); CERR << "Extended Key Usage:" < +Form1 + + QWizard + + name + Form1 + + + geometry + + 0 + 0 + 652 + 430 + + + + caption + Form1 + + + QWidget + + name + page + + + title + Page + + + + margin + 11 + + + spacing + 6 + + + QLabel + + name + TextLabel10 + + + text + For a new certificate you have to enter your personal data into the form and select a key to use. +For signing a request, please select the appropriate Certificates igning request. +For a SSL servercertificate choose the DNS name of the server as "Common name" + + + + QButtonGroup + + name + ButtonGroup1 + + + frameShape + Box + + + frameShadow + Sunken + + + title + Source of the subject and the key + + + + margin + 11 + + + spacing + 6 + + + QRadioButton + + name + fromDataRB + + + text + Use the data entered here + + + + QFrame + + name + inputFrame + + + frameShape + Box + + + frameShadow + Sunken + + + + margin + 11 + + + spacing + 6 + + + + name + Spacer6 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + QLineEdit + + name + stateOrProvinceName + + + text + Germany + + + + QLabel + + name + TextLabel7 + + + text + E-Mail address: + + + + QLineEdit + + name + organisationalUnitName + + + + QLabel + + name + TextLabel4_2 + + + text + Organisation: + + + + QLabel + + name + TextLabel3 + + + text + State or Province + + + + QLineEdit + + name + organisationName + + + text + + + + + QLabel + + name + TextLabel5 + + + text + Organisational unit: + + + + QComboBox + + name + keyList + + + + QPushButton + + name + genKey + + + text + Generate a new key + + + + QLineEdit + + name + description + + + + QLineEdit + + name + localityName + + + text + + + + + + name + Spacer5 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + QLabel + + name + TextLabel6 + + + text + Common name: + + + + QLineEdit + + name + countryName + + + sizePolicy + + 1 + 0 + + + + text + DE + + + + QLabel + + name + TextLabel1_2 + + + text + Key: + + + + QLabel + + name + TextLabel4 + + + text + Locality: + + + + QLabel + + name + TextLabel2 + + + text + Country: + + + + QLabel + + name + TextLabel1_3 + + + text + Certificate name: + + + + QLineEdit + + name + emailAddress + + + + QLineEdit + + name + commonName + + + + + + QLayoutWidget + + name + Layout7 + + + + margin + 0 + + + spacing + 6 + + + QRadioButton + + name + fromReqRB + + + text + Use this Certificate signing request + + + + QComboBox + + name + reqList + + + + + + + + + + QWidget + + name + page + + + title + Page + + + + margin + 11 + + + spacing + 6 + + + QLabel + + name + TextLabel10_2 + + + text + Please choose the signer, wether it should be self signed, or signed by an other signer + + + alignment + WordBreak|AlignVCenter|AlignLeft + + + wordwrap + + + + QButtonGroup + + name + ButtonGroup2 + + + title + Certificate to sign with + + + + margin + 11 + + + spacing + 6 + + + QComboBox + + name + certList + + + + QRadioButton + + name + foreignSignRB + + + text + Use this Certificate for for signing: + + + + QLineEdit + + name + serialNr + + + + QRadioButton + + name + selfSignRB + + + text + Create a self signed certificate with the serial: + + + + + + QGroupBox + + name + GroupBox12 + + + title + Key identifier + + + + margin + 11 + + + spacing + 6 + + + QCheckBox + + name + subKey + + + text + Subject Key Identifier + + + checked + true + + + + QCheckBox + + name + authKey + + + text + Authority Key Identifier + + + checked + true + + + + + + QGroupBox + + name + GroupBox1 + + + title + Basic Constraints + + + + margin + 11 + + + spacing + 6 + + + QLabel + + name + TextLabel2_2 + + + text + CA: + + + + QComboBox + + + text + FALSE + + + + + text + TRUE + + + + name + basicCA + + + whatsThis + + + + + QLabel + + name + TextLabel3_2 + + + text + Path length: + + + + QLineEdit + + name + basicPath + + + + QCheckBox + + name + bcCritical + + + text + Critical + + + checked + true + + + + + + QGroupBox + + name + GroupBox3 + + + title + Validity + + + + margin + 11 + + + spacing + 6 + + + QLineEdit + + name + validNumber + + + sizePolicy + + 5 + 0 + + + + text + 356 + + + + QComboBox + + + text + Days + + + + + text + Months + + + + + text + Years + + + + name + validRange + + + + + + QGroupBox + + name + GroupBox13_3 + + + title + CRL distribution point + + + + margin + 11 + + + spacing + 6 + + + QLabel + + name + TextLabel1_2_3 + + + text + URL + + + + QLabel + + name + TextLabel2_3_2 + + + text + DNS + + + + QLineEdit + + name + crldpURL + + + + QLineEdit + + name + crldpDNS + + + + + + + + QWidget + + name + page + + + title + Page + + + + margin + 11 + + + spacing + 6 + + + QGroupBox + + name + GroupBox4 + + + title + Key Usage + + + + margin + 11 + + + spacing + 6 + + + QCheckBox + + name + kuCritical + + + text + Critical + + + checked + true + + + + QListBox + + + text + Digital Signature + + + + + text + Non Repudiation + + + + + text + Key Encipherment + + + + + text + Data Encipherment + + + + + text + Key Agreement + + + + + text + Certificate Sign + + + + + text + CRL Sign + + + + + text + Encipher Only + + + + + text + Decipher Only + + + + name + keyUsage + + + selectionMode + Multi + + + + + + QGroupBox + + name + GroupBox5 + + + title + Extended Key Usage + + + + margin + 11 + + + spacing + 6 + + + QCheckBox + + name + ekuCritical + + + text + Critical + + + checked + true + + + + QListBox + + + text + SSL/TLS Web Server Authentication + + + + + text + SSL/TLS Web Client Authentication + + + + + text + Code signing + + + + + text + E-mail Protection (S/MIME) + + + + + text + Trusted Timestamping + + + + + text + Microsoft Individual Code Signing (authenticode) + + + + + text + Microsoft Commercial Code Signing (authenticode) + + + + + text + Microsoft Trust List Signing + + + + + text + Microsoft Server Gated Crypto + + + + + text + Microsoft Encrypted File System + + + + + text + Netscape Server Gated Crypto + + + + name + ekeyUsage + + + selectionMode + Multi + + + + + + + + QWidget + + name + page + + + title + Page + + + + margin + 11 + + + spacing + 6 + + + QGroupBox + + name + GroupBox13 + + + title + subject alternative name + + + + margin + 11 + + + spacing + 6 + + + QLabel + + name + TextLabel1_2_2 + + + text + URL + + + + QLabel + + name + TextLabel2_3 + + + text + DNS + + + + QLabel + + name + TextLabel3_3 + + + text + IP + + + + QLabel + + name + TextLabel4_2_2 + + + text + EMAIL + + + + QLineEdit + + name + subAltURL + + + + QLineEdit + + name + subAltDNS + + + + QLineEdit + + name + subAltIP + + + + QLineEdit + + name + subAltEMAIL + + + + QCheckBox + + name + subAltCpMail + + + text + Copy e-mail address from subject line + + + + + + QGroupBox + + name + GroupBox13_2 + + + title + issuer alternative name + + + + margin + 11 + + + spacing + 6 + + + QLabel + + name + TextLabel1_2_2_2 + + + text + URL + + + + QLabel + + name + TextLabel2_2_2 + + + text + DNS + + + + QLabel + + name + TextLabel3_3_2 + + + text + IP + + + + QLabel + + name + TextLabel4_2_2_2 + + + text + EMAIL + + + + QLineEdit + + name + issAltURL + + + + QLineEdit + + name + issAltDNS + + + + QLineEdit + + name + issAltIP + + + + QLineEdit + + name + issAltEMAIL + + + + QCheckBox + + name + issAltCopy + + + text + Copy issuer name + + + + + + + + diff --git a/NewX509_0.cpp b/NewX509_0.cpp deleted file mode 100644 index 4559f203..00000000 --- a/NewX509_0.cpp +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (C) 2001 Christian Hohnstaedt. - * - * All rights reserved. - * - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * - Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - Neither the name of the author nor the names of its contributors may be - * used to endorse or promote products derived from this software without - * specific prior written permission. - * - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * - * This program links to software with different licenses from: - * - * http://www.openssl.org which includes cryptographic software - * written by Eric Young (eay@cryptsoft.com)" - * - * http://www.sleepycat.com - * - * http://www.trolltech.com - * - * - * - * http://www.hohnstaedt.de/xca - * email: christian@hohnstaedt.de - * - * $Id$ - * - */ - - -#include "NewX509_0.h" - -NewX509_0::NewX509_0(QWidget *parent , const char *name, db_key *key, db_x509req *req) - :NewX509_0_UI(parent, name) -// :NewX509_0_UI(parent, name, true, 0) -{ - connect( this, SIGNAL(genKey()), parent, SLOT(newKey()) ); - keys = key; - reqs = req; - QStringList strings = keys->getPrivateDesc(); - // are there any private keys to use ? - if (strings.isEmpty()) { - newKey(); - } - else { - keyList->insertStringList(strings); - } - // any PKCS#10 requests to be used ? - strings = reqs->getDesc(); - if (strings.isEmpty()) { - fromReqRB->setDisabled(true); - } - else { - reqList->insertStringList(strings); - } - fromDataRB->setChecked(true); -} - -void NewX509_0::setDisabled(int state) -{ - if (state == 2) { - inputFrame->setDisabled(false); - reqList->setDisabled(true); - } - else if (state == 0) { - inputFrame->setDisabled(true); - reqList->setDisabled(false); - } -} - -void NewX509_0::newKey() -{ - emit genKey(); - keyList->clear(); - keyList->insertStringList(keys->getPrivateDesc()); -} - -void NewX509_0::validateFields() { - QStringList fields; - if (fromReqRB->isChecked()) { - accept(); - return; - } - - if (description->text() == "") - fields.append(tr("Description")); - if (commonName->text() == "") - fields.append(tr("Common Name")); - if (emailAddress->text() == "") - fields.append(tr("Email Address")); - - if (!fields.isEmpty()) { - QMessageBox::information(this,tr("Missing parameter"), - tr("The following fields must not be empty") +":\n'"+ - fields.join("'\n'") + "'", "OK"); - } - else { - accept(); - } -} - diff --git a/NewX509_0.h b/NewX509_0.h deleted file mode 100644 index e7fa7fbf..00000000 --- a/NewX509_0.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (C) 2001 Christian Hohnstaedt. - * - * All rights reserved. - * - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * - Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - Neither the name of the author nor the names of its contributors may be - * used to endorse or promote products derived from this software without - * specific prior written permission. - * - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * - * This program links to software with different licenses from: - * - * http://www.openssl.org which includes cryptographic software - * written by Eric Young (eay@cryptsoft.com)" - * - * http://www.sleepycat.com - * - * http://www.trolltech.com - * - * - * - * http://www.hohnstaedt.de/xca - * email: christian@hohnstaedt.de - * - * $Id$ - * - */ - - -#include "NewX509_0_UI.h" -#include -#include -#include "lib/db_key.h" -#include "lib/db_x509req.h" -#include -#include -#include - -#ifndef NEWX509_0_H -#define NEWX509_0_H - -class MainWindow; -class NewX509_0: public NewX509_0_UI -{ - Q_OBJECT - private: - db_x509req *reqs; - db_key *keys; - MainWindow *par; - public: - NewX509_0(QWidget *parent, const char *name, db_key *key, db_x509req *req); - - public slots: - void setDisabled(int state); - void newKey(); - void validateFields(); - signals: - void genKey(); -}; - -#endif diff --git a/NewX509_0.ui b/NewX509_0.ui deleted file mode 100644 index aafebf5b..00000000 --- a/NewX509_0.ui +++ /dev/null @@ -1,565 +0,0 @@ - -NewX509_0_UI - - QDialog - - name - NewX509_0_UI - - - geometry - - 0 - 0 - 738 - 458 - - - - caption - Certificate generation - Step 1 - - - - margin - 11 - - - spacing - 6 - - - QLayoutWidget - - name - Layout6 - - - - margin - 0 - - - spacing - 6 - - - QLabel - - name - TextLabel1 - - - font - - 14 - 1 - 1 - - - - text - New Certificate - - - - - name - Spacer4 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QLabel - - name - image - - - minimumSize - - 95 - 40 - - - - maximumSize - - 95 - 40 - - - - scaledContents - true - - - - - - QLabel - - name - TextLabel10 - - - text - For a new certificate you have to enter your personal data into the form and select a key to use. -For signing a request, please select the appropriate Certificates igning request. -For a SSL servercertificate choose the DNS name of the server as "Common name" - - - - QButtonGroup - - name - ButtonGroup1 - - - frameShape - Box - - - frameShadow - Sunken - - - title - Source of the subject and the key - - - - margin - 11 - - - spacing - 6 - - - QRadioButton - - name - fromDataRB - - - text - Use the data entered here - - - - QFrame - - name - inputFrame - - - frameShape - Box - - - frameShadow - Sunken - - - - margin - 11 - - - spacing - 6 - - - - name - Spacer6 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QLineEdit - - name - stateOrProvinceName - - - text - Germany - - - - QLabel - - name - TextLabel7 - - - text - E-Mail address: - - - - QLineEdit - - name - organisationalUnitName - - - - QLabel - - name - TextLabel4_2 - - - text - Organisation: - - - - QLabel - - name - TextLabel3 - - - text - State or Province - - - - QLineEdit - - name - organisationName - - - text - - - - - QLabel - - name - TextLabel5 - - - text - Organisational unit: - - - - QComboBox - - name - keyList - - - - QPushButton - - name - genKey - - - text - Generate a new key - - - - QLineEdit - - name - description - - - - QLineEdit - - name - localityName - - - text - - - - - - name - Spacer5 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QLabel - - name - TextLabel6 - - - text - Common name: - - - - QLineEdit - - name - countryName - - - sizePolicy - - 1 - 0 - - - - text - DE - - - - QLabel - - name - TextLabel1_2 - - - text - Key: - - - - QLabel - - name - TextLabel4 - - - text - Locality: - - - - QLabel - - name - TextLabel2 - - - text - Country: - - - - QLabel - - name - TextLabel1_3 - - - text - Certificate name: - - - - QLineEdit - - name - emailAddress - - - - QLineEdit - - name - commonName - - - - - - QLayoutWidget - - name - Layout7 - - - - margin - 0 - - - spacing - 6 - - - QRadioButton - - name - fromReqRB - - - text - Use this Certificate signing request - - - - QComboBox - - name - reqList - - - - - - - - QLayoutWidget - - name - Layout22 - - - - margin - 0 - - - spacing - 6 - - - QPushButton - - name - PushButton15 - - - text - Cancel - - - - - name - Spacer8 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QPushButton - - name - PushButton14 - - - text - Next > - - - - - - - - - PushButton15 - clicked() - NewX509_0_UI - reject() - - - fromDataRB - stateChanged(int) - NewX509_0_UI - setDisabled(int) - - - PushButton14 - clicked() - NewX509_0_UI - validateFields() - - setDisabled(int) - validateFields() - - - description - countryName - stateOrProvinceName - localityName - keyList - genKey - organisationName - organisationalUnitName - commonName - emailAddress - reqList - PushButton14 - PushButton15 - fromDataRB - fromReqRB - - diff --git a/NewX509_1.ui b/NewX509_1.ui deleted file mode 100644 index bb7ab2fd..00000000 --- a/NewX509_1.ui +++ /dev/null @@ -1,302 +0,0 @@ - -NewX509_1_UI - - QDialog - - name - NewX509_1_UI - - - geometry - - 0 - 0 - 600 - 214 - - - - caption - New Certificate - Step 2 - - - - margin - 11 - - - spacing - 6 - - - QLayoutWidget - - name - Layout18 - - - - margin - 0 - - - spacing - 6 - - - QLabel - - name - TextLabel1 - - - font - - 14 - 1 - 1 - - - - text - New Certificate - - - - - name - Spacer6 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QLabel - - name - image - - - minimumSize - - 95 - 40 - - - - maximumSize - - 95 - 40 - - - - font - - - - - text - - - - scaledContents - true - - - - - - QLabel - - name - TextLabel10 - - - text - Please choose the signer, wether it should be self signed, or signed by an other signer - - - alignment - WordBreak|AlignVCenter|AlignLeft - - - wordwrap - - - - QButtonGroup - - name - ButtonGroup2 - - - title - Certificate to sign with - - - - margin - 11 - - - spacing - 6 - - - QComboBox - - name - certList - - - - QRadioButton - - name - foreignSignRB - - - text - Use this Certificate for for signing: - - - - QLineEdit - - name - serialNr - - - - QRadioButton - - name - selfSignRB - - - text - Create a self signed certificate with the serial: - - - - - - QLayoutWidget - - name - Layout18 - - - - margin - 0 - - - spacing - 6 - - - QPushButton - - name - PushButton15 - - - text - Cancel - - - - - name - Spacer5 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QPushButton - - name - PushButton14_2 - - - text - < Back - - - - QPushButton - - name - PushButton14 - - - text - Next > - - - - - - - - - PushButton15 - clicked() - NewX509_1_UI - reject() - - - PushButton14 - clicked() - NewX509_1_UI - accept() - - - PushButton14 - clicked() - NewX509_1_UI - goNext() - - - PushButton14_2 - clicked() - NewX509_1_UI - goBack() - - goNext() - goBack() - - - PushButton14 - PushButton15 - - diff --git a/NewX509_2.ui b/NewX509_2.ui deleted file mode 100644 index 38d17e83..00000000 --- a/NewX509_2.ui +++ /dev/null @@ -1,671 +0,0 @@ - -NewX509_2_UI - - QDialog - - name - NewX509_2_UI - - - geometry - - 0 - 0 - 559 - 507 - - - - caption - New Certificate - Step 3 - - - - margin - 11 - - - spacing - 6 - - - QLayoutWidget - - name - Layout1 - - - - margin - 0 - - - spacing - 6 - - - QLabel - - name - TextLabel1 - - - font - - 14 - 1 - 1 - - - - text - New Certificate - - - - - name - Spacer1 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QLabel - - name - image - - - minimumSize - - 95 - 40 - - - - maximumSize - - 95 - 40 - - - - frameShape - MShape - - - frameShadow - MShadow - - - scaledContents - true - - - - - - QLayoutWidget - - name - Layout34 - - - - margin - 0 - - - spacing - 6 - - - QGroupBox - - name - GroupBox4 - - - title - Key Usage - - - - margin - 11 - - - spacing - 6 - - - QCheckBox - - name - kuCritical - - - text - Critical - - - checked - true - - - - QListBox - - - text - Digital Signature - - - - - text - Non Repudiation - - - - - text - Key Encipherment - - - - - text - Data Encipherment - - - - - text - Key Agreement - - - - - text - Certificate Sign - - - - - text - CRL Sign - - - - - text - Encipher Only - - - - - text - Decipher Only - - - - name - keyUsage - - - selectionMode - Multi - - - - - - QGroupBox - - name - GroupBox5 - - - title - Extended Key Usage - - - - margin - 11 - - - spacing - 6 - - - QCheckBox - - name - ekuCritical - - - text - Critical - - - checked - true - - - - QListBox - - - text - SSL/TLS Web Server Authentication - - - - - text - SSL/TLS Web Client Authentication - - - - - text - Code signing - - - - - text - E-mail Protection (S/MIME) - - - - - text - Trusted Timestamping - - - - - text - Microsoft Individual Code Signing (authenticode) - - - - - text - Microsoft Commercial Code Signing (authenticode) - - - - - text - Microsoft Trust List Signing - - - - - text - Microsoft Server Gated Crypto - - - - - text - Microsoft Encrypted File System - - - - - text - Netscape Server Gated Crypto - - - - name - ekeyUsage - - - selectionMode - Multi - - - - - - - - QLayoutWidget - - name - Layout33 - - - - margin - 0 - - - spacing - 6 - - - QGroupBox - - name - GroupBox1 - - - title - Basic Constraints - - - - margin - 11 - - - spacing - 6 - - - QCheckBox - - name - bcCritical - - - text - Critical - - - checked - true - - - - QLabel - - name - TextLabel2_2 - - - text - CA: - - - - QComboBox - - - text - FALSE - - - - - text - TRUE - - - - name - basicCA - - - whatsThis - - - - - QLabel - - name - TextLabel3_2 - - - text - Path length: - - - - QLineEdit - - name - basicPath - - - - - - QGroupBox - - name - GroupBox12 - - - title - Key identifier - - - - margin - 11 - - - spacing - 6 - - - QCheckBox - - name - subKey - - - text - Subject Key Identifier - - - checked - true - - - - QCheckBox - - name - authKey - - - text - Authority Key Identifier - - - checked - true - - - - - - QGroupBox - - name - GroupBox3 - - - title - Validity - - - - margin - 11 - - - spacing - 6 - - - QLineEdit - - name - validNumber - - - sizePolicy - - 5 - 0 - - - - text - 356 - - - - QComboBox - - - text - Days - - - - - text - Months - - - - - text - Years - - - - name - validRange - - - - - - - - QLayoutWidget - - name - Layout15 - - - - margin - 0 - - - spacing - 6 - - - QPushButton - - name - PushButton15 - - - text - Cancel - - - - - name - Spacer2 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QPushButton - - name - PushButton14 - - - text - < Back - - - - QPushButton - - name - PushButton8 - - - text - Next > - - - - - - - - - PushButton15 - clicked() - NewX509_2_UI - reject() - - - PushButton14 - clicked() - NewX509_2_UI - goBack() - - - PushButton8 - clicked() - NewX509_2_UI - goNext() - - goNext() - goBack() - - - PushButton14 - PushButton15 - - diff --git a/NewX509_3.ui b/NewX509_3.ui deleted file mode 100644 index 46ebfd34..00000000 --- a/NewX509_3.ui +++ /dev/null @@ -1,483 +0,0 @@ - -NewX509_3_UI - - QDialog - - name - NewX509_3_UI - - - geometry - - 0 - 0 - 565 - 531 - - - - caption - New Certificate - Step 4 - - - layoutMargin - - - layoutSpacing - - - - margin - 11 - - - spacing - 6 - - - QLayoutWidget - - name - Layout1 - - - - margin - 0 - - - spacing - 6 - - - QLabel - - name - TextLabel1 - - - font - - 14 - 1 - 1 - - - - text - X.509 v3 extensions - - - - - name - Spacer1 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QLabel - - name - image - - - minimumSize - - 95 - 40 - - - - maximumSize - - 95 - 40 - - - - frameShape - MShape - - - frameShadow - MShadow - - - scaledContents - true - - - - - - QGroupBox - - name - GroupBox13 - - - title - subject alternative name - - - - margin - 11 - - - spacing - 6 - - - QLabel - - name - TextLabel1_2 - - - text - URL - - - - QLabel - - name - TextLabel2 - - - text - DNS - - - - QLabel - - name - TextLabel3_3 - - - text - IP - - - - QLabel - - name - TextLabel4_2 - - - text - EMAIL - - - - QLineEdit - - name - subAltURL - - - - QLineEdit - - name - subAltDNS - - - - QLineEdit - - name - subAltIP - - - - QLineEdit - - name - subAltEMAIL - - - - QCheckBox - - name - subAltCpMail - - - text - Copy e-mail address from subject line - - - - - - QGroupBox - - name - GroupBox13_2 - - - title - issuer alternative name - - - - margin - 11 - - - spacing - 6 - - - QLabel - - name - TextLabel1_2_2 - - - text - URL - - - - QLabel - - name - TextLabel2_2 - - - text - DNS - - - - QLabel - - name - TextLabel3_3_2 - - - text - IP - - - - QLabel - - name - TextLabel4_2_2 - - - text - EMAIL - - - - QLineEdit - - name - issAltURL - - - - QLineEdit - - name - issAltDNS - - - - QLineEdit - - name - issAltIP - - - - QLineEdit - - name - issAltEMAIL - - - - QCheckBox - - name - issAltCopy - - - text - Copy issuer name - - - - - - QGroupBox - - name - GroupBox13_3 - - - title - CRL distribution point - - - - margin - 11 - - - spacing - 6 - - - QLabel - - name - TextLabel1_2_3 - - - text - URL - - - - QLabel - - name - TextLabel2_3 - - - text - DNS - - - - QLineEdit - - name - crldpURL - - - - QLineEdit - - name - crldpDNS - - - - - - QLayoutWidget - - name - Layout10 - - - - margin - 0 - - - spacing - 6 - - - QPushButton - - name - PushButton15 - - - text - Cancel - - - - - name - Spacer2 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QPushButton - - name - PushButton5 - - - text - < Back - - - - QPushButton - - name - PushButton14 - - - text - Create Certificate - - - - - - - - - PushButton14 - clicked() - NewX509_3_UI - accept() - - - PushButton15 - clicked() - NewX509_3_UI - reject() - - - - PushButton14 - PushButton15 - - diff --git a/PassRead.ui b/PassRead.ui index 0bf33389..641eeeb8 100644 --- a/PassRead.ui +++ b/PassRead.ui @@ -11,7 +11,7 @@ 0 0 - 491 + 487 184 @@ -233,38 +233,4 @@ name PushButton2 - - text - Cancel - - - - - - - - - PushButton1 - clicked() - PassRead_UI - accept() - - - PushButton2 - clicked() - PassRead_UI - reject() - - - pass - returnPressed() - PassRead_UI - accept() - - - - pass - PushButton1 - PushButton2 - - + \ No newline at end of file diff --git a/PassWrite.ui b/PassWrite.ui index 2146e65d..ea929d0b 100644 --- a/PassWrite.ui +++ b/PassWrite.ui @@ -11,7 +11,7 @@ 0 0 - 490 + 486 236