Commit Graph

28 Commits

Author SHA1 Message Date
Christian Hohnstaedt
7d3ff4f0f9 Add OpenSSL PURPOSE and validation results
A new tab on the certificate details dialog
shows the result of the OpenSSL validation process
and the calculated OpenSSL Purpose.

The translation of the OpenSSL X509_V_ERR.... messsages
back to strings is done by grepping them from "openssl/x509_vfy.h"
and wrapping them into a macro-call.
Additionally guard them by an #ifdef (Zombieland rule #2: Double-Tap)
This way:
 - I don't need to test and check in which versions of OpenSSL
   which errors are available or not
 - New errors will be picked up automatically, as long as they
   match the "X509_V_ERR_" pattern
2024-09-29 14:12:17 +02:00
Christian Hohnstaedt
7f5bdb7dec Close #287: template don't save/restore correctly
Use the probably modified internal name of the template
in the template-details dialog before import.

Therefore the name of the qlineedit of the internal name of
all other details dialogs changed from "descr" to "description"
to match the name in the NewX509 dialog and to be found
by the "XcaDetails" class.

When exporting the template data, add the internal name and the comment
to the exported data.
The XCA template data is defined by us and can be modified.
This change is backwards and upwards compatible:
  New versions of XCA can read an old Template export and vice-versa.
2024-08-31 14:48:43 +02:00
Christian Hohnstaedt
1bc340a0ef Close #104: Also show sha256 digests of public keys
Print digest of public keys in the key details in different formats:

Print SHA256 SSH digest as used to by SSH users:
	ssh-keygen -l -f ~/.ssh/id_rsa.pub

Print SHA1 X509 key digest as shown in the
	Subject key identifier of a certificate

Print SHA256 digest as in:
	openssl pkey -pubout -outform DER < key.pem | sha256sum
as requested by this issue.

Refactored digesting functionality by a generic Digest()
function working with QByteArrays.
The function formatHash() now also expects a QByteArray input.
2019-03-14 06:35:24 +01:00
Christian Hohnstaedt
4b3ee2c705 Switch database format to SQL(ite)
This is a large squash of many small commits.

Allow porting data from the legacy format to SQL.
Store Binaries base64 encoded and use db->transaction
Update password hash to be 8000 x SHA512 with 8 byte Salt
Add revocations table and fixup CRL generation
Add comment and insertion date columns

Fix column saving, remove trust, add XcaDialog
Allow changing the internal name and comment in Cert/Req details view
Extend Comment functionality, Replace About.ui by XcaDialog.ui
2018-03-05 07:42:36 +01:00
Christian Hohnstaedt
f5434dd6f3 SF Feat. Req. #75 show SHA-256 digest
.. in the details dialog and as extra column in the table
2014-11-18 17:55:11 +01:00
Christian Hohnstaedt
9f7840e012 merge cert details and request details 2010-08-24 07:27:34 +02:00
Christian Hohnstaedt
f572eb3898 Messageboxes use the Buttongroup
The buttongroup behaves as expected on different Environments

update translation
2010-08-06 19:08:14 +02:00
Christian Hohnstaedt
9085ecbd4e More support for public keys
Extract public key from cert and request
Show public keys in requests- and cert-details in red
Allow using public keys for certs. Useful if not selfsigning
2010-07-22 06:57:32 +02:00
Christian Hohnstaedt
a7c40be095 After all we are able to convert all extensions to config
Add a button to the certificate detila dialog to show the
extensions as OpenSSL config

improve AuthKeyId

Allow selecting public keys for certificates.
This works if it is signed by an other cert.
2010-07-21 17:52:17 +02:00
Christian Hohnstaedt
4398b2afc5 move frame and shape definition of copyable labels to copylabel
- drop label styles from UIs and c++-files
 - set sigAlg and serial to copyable label
2010-04-12 19:41:37 +02:00
Christian Hohnstaedt
92b0def437 minor optical changes 2010-02-23 07:39:39 +01:00
Christian
0195dcf746 Request attributes added
- remove extension and attribute tab in details dialog if
   no extensions or attributes available
 - documentation updated
   X509 request attributes (like challange password) can be set and viewed.
2007-05-28 16:33:13 +02:00
Christian
4a441557f7 make cert, crl and key details copy&paste able 2007-04-30 23:22:52 +02:00
Christian Hohnstaedt
b5695ba066 fix dialog sizes for long DNs and automatic resizing 2007-02-14 12:36:34 +01:00
Christian
7741c4f9dc fix typo in cert details and switch hash-algo from
LineEdit to Label for consistency
2007-02-11 16:00:14 +01:00
Christian
2a7b6e242f fix x509name list in NewX509.ui
make Extensions readonly
2006-12-20 23:51:07 +01:00
Christian Hohnstaedt
141f0e0218 Fix uninitialized/Null pointer segfault 2006-12-13 21:37:36 +01:00
Christian
64333cff30 fix SPKAC import
set x509 extension viewer Read only
resort Tab order in NewX509
fix Key-repass error
2006-12-08 23:26:52 +01:00
Christian
d04c262ecb Fix duplicate names in .ui files 2006-05-18 18:31:30 +02:00
chris2511
462eac83a3 certificates for QT4 2006-03-12 23:57:24 +00:00
chris2511
a9a34847c2 "Authority info Access" enhanced
"aia.txt" as oid list added
2004-04-14 23:36:54 +00:00
chris2511
8c77834ea7 MainWindow.cpp patch applied
tooltip for clickable textfield added
Reqdetail is now tabdialog
2003-11-26 22:01:41 +00:00
chris2511
f9a493350d small ui changes
more german translations
2003-08-13 08:23:02 +00:00
chris2511
37e803e444 This version works already pretty good 2003-07-06 16:28:21 +00:00
chris2511
8be3abe818 *** empty log message *** 2003-07-03 05:58:18 +00:00
chris2511
35680ff649 Certificate creation works again, validity settings elaborated 2003-06-29 22:03:10 +00:00
chris2511
6a88c53778 *** empty log message *** 2003-06-25 15:42:51 +00:00
chris2511
756a848801 compiles but crashes :-) 2003-06-19 20:20:31 +00:00