Commit Graph

47 Commits

Author SHA1 Message Date
Christian Hohnstaedt
c14e54c830 Minor fixes: Date from database and affected items
Correctly initialize undefined date from database
Clear list of affected items after commit.
2018-03-05 07:46:11 +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
b63f50b28b Add more error checks and remove code duplication 2018-03-01 22:10:52 +01:00
Christian Hohnstaedt
8ebaa683ff Translation: Also translate validity dates to the configured language 2017-11-17 09:06:56 +01:00
Adam Dawidowski
0d34bc1c1c Extend generating an OpenSSL "index.txt"
Updated patch adds another export option automating the creation
of multiple index.txt files to be used with multiple ocsp responders.

New export option is available via command line (-I index.txt) and
the Extras menu (Extra->Export Certificate Index hierarchy).

The option causes the creation of an index.txt file containing
index records for all the children certificates of a parent.
The filenames are generated using the supplied name as prefix
and append a dot and the simplified Internal Name
(the Internal Name stripped of non-alphanumeric characters except underscores).
2016-09-06 20:03:55 +02:00
Christian Hohnstaedt
e5541c6d67 SF. Bug. #81 Make xca qt5 compatible
Extend XCA to also compile against Qt5
Remove directory from Qt includes
2015-09-17 18:42:42 +02:00
Christian Hohnstaedt
c614197d74 Fix Double free in a1time
by addingt copy constructor and assignment operator,
not copying the "a1time" from the origin

drop unused variables found during investigation
2012-05-12 08:45:26 +02:00
Christian Hohnstaedt
38ed0b60b5 Update Copyright dates 2012-05-06 11:16:44 +02:00
Christian Hohnstaedt
10436bf753 Differentiate between invalid and undefined date
Undefined end dates are described in RFC-5280
Invalid dates should never ever arise in certificates.

Add configuration option to disable the colorization of expired dates.
2012-04-10 13:09:09 +02:00
Christian Hohnstaedt
a0baea653b Improve Date displays and input
Make asn1time be based on QDateTime

Support for local time and GMT in
displays and input
2012-04-03 21:07:08 +02:00
Christian Hohnstaedt
20b166488f Improve CRL generation [3035294]
Add CRLNumber for the CRL.
Add InvalidityDate and CRL-reason for each entry.

CRL-hold-instruction-code not supported, yet.
2010-07-29 07:41:49 +02:00
Christian Hohnstaedt
71af5a87b3 Use QDateTime instead of mktime 2010-07-16 06:30:54 +02:00
Christian Hohnstaedt
ac371b697a improve date and time input
- Only once set notBefore to "now" when creating Cert-renewal
  or NewCert dialog.

- Apply-time button now always uses the current value from notBefore
  and adds the time-span without resetting notBefore

- Checking "midnight" now immediately modifies the dates.
  Unchecking "midnight" now recovers the old value

- The seconds are always set to 00, since they can't be set via
  the DateTime dialog anyway

- CRL generation now too allows to use midnight and time ranges
  and uses GENERALIZED time if the date is out of range for UTCTIME
  (same logic as for certificates)
2010-07-14 20:54:59 +02:00
Christian Hohnstaedt
de851ed3a9 Changed all header includes to QT4 names and included the correct component name
By Andreas Piesk. Thanks!

adapt to HEAD since the patch is based on 0.6.4

drop qt4/Qt include in list of includes during configuration
2010-06-13 11:49:38 +02:00
Christian Hohnstaedt
f1c528fcc9 update copyright information 2010-03-11 07:13:48 +01:00
Christian Hohnstaedt
0230061855 replace allocated strings by QByteArray for datastorage 2010-03-08 07:50:08 +01:00
Christian Hohnstaedt
766648be49 fix string conversion from QString to ASN1
Synopsis: When using special chars in the DN entries
           they sometimes got corrupted.

 - the toUtf8() method returned a temporary QByteArray
   and the pointer to its memory became invalid befor using it.

 - also checked other invalid uses of temporary QByteArray objects
2010-01-05 07:37:38 +01:00
Christian Hohnstaedt
30f186caa3 compile fix for openssl 1.0.0
- and remove trailing newline when displaying extension texts
 - show the correct year when displaying times. 2009 instead of 109
2009-12-07 19:34:57 +01:00
Christian Hohnstaedt
a7b30813f1 fix year while generating struct tm 2009-12-06 12:34:29 +01:00
Christian Hohnstaedt
7f3ce42d4d finish certificate to request transformation
- Implement feature request [2213094] and [1108304]
2009-12-05 09:07:04 +01:00
Christian Hohnstaedt
9f900ae6f7 update copyright date to 2009 where appropriate 2009-11-24 17:54:21 +01:00
Christian Hohnstaedt
511a589341 drop senseless const 2009-11-24 17:42:16 +01:00
Christian Hohnstaedt
467295e8ca add the "no well-defined date" from RFC 5280 as checkbox 2009-11-16 18:27:21 +01:00
Christian
8283d8e7b9 replace copyright notice in source files
(copyright and licence itself remain unchanged)
fix configure to set Qt include dir
code justifying
2007-04-12 12:25:28 +02:00
Christian Hohnstaedt
5aa171ee2a fix date generation and warn if generalized time is used 2007-02-08 18:08:08 +01:00
Christian
9012225995 readd old commit 2007-01-01 20:33:08 +01:00
Christian Hohnstaedt
141f0e0218 Fix uninitialized/Null pointer segfault 2006-12-13 21:37:36 +01:00
Christian
da95466b5f delete superflous code fragments for OpenSSL 0.9.6 support
fix Crl expiry date and show it.
Crl list: show issuer certificate name and Expiry date (last URL)
fix indentation
2006-12-09 16:04:45 +01:00
Christian
813e115b8e Spaces deleted 2006-05-21 10:08:39 +02:00
chris2511
c6622680db push forward to QT4 2006-03-12 17:39:52 +00:00
chris2511
d80d1ff6d2 small fixes 2005-05-23 18:23:19 +00:00
chris2511
0091853a73 changes in building,
DSA keys
key format in database changed to contain the public key and
the private one in encrypted form.
2005-02-07 21:56:21 +00:00
chris2511
8f240a9858 *** empty log message *** 2003-12-14 19:11:33 +00:00
chris2511
748e71a6e4 searching for leaks 2003-12-10 16:01:06 +00:00
chris2511
5c43538374 uses UTC time for certificate dates >1950 and < 2049
solves Bug: [ 783830 ] GeneralizedTime-format breaks browsers
2003-08-06 08:15:37 +00:00
chris2511
4da20ce414 *** empty log message *** 2003-07-08 19:00:58 +00:00
chris2511
639f2cc26e time moved back to generalized time 2003-07-08 15:13:28 +00:00
chris2511
ad0b255aa9 *** empty log message *** 2003-07-07 22:45:07 +00:00
chris2511
37e803e444 This version works already pretty good 2003-07-06 16:28:21 +00:00
chris2511
35680ff649 Certificate creation works again, validity settings elaborated 2003-06-29 22:03:10 +00:00
chris2511
e066039e5f crl handling "touched" 2003-06-23 15:49:07 +00:00
chris2511
cd4a636236 works better... 2003-06-20 15:25:59 +00:00
chris2511
756a848801 compiles but crashes :-) 2003-06-19 20:20:31 +00:00
chris2511
431fd7aed3 validity widget added for time input
more work on CertView
2003-06-18 22:11:47 +00:00
chris2511
fe46ff670f all strings replaced by QString 2003-06-18 16:04:26 +00:00
chris2511
64243d896b more baustelle 2003-06-17 22:40:41 +00:00
chris2511
1995634aab asn1-integer, asn1-time, x509-name objects added 2003-06-15 21:15:57 +00:00