mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
XCA currently lacks support for generating an index.txt. Such a file gets created and maintained when using CA features in openssl. As mentioned here: https://sourceforge.net/p/xca/discussion/209946/thread/6cbc727c/#2310 such a file can be used by Openssl's built-in OCSP responder. Additionally, it can be used for configuring a cron job for reminding of certificate expiration. Certificate index export is added in 3 places: - command line (-i index.txt), - the Extras menu (Extra->Export Certificate Index) and - the selected file(s) export option in the context menu on the Certificates tab (Export->File, Export Format: Certificate Index file). Please note that SubjectDN generated by this feature has different formatting than the one generated by openssl.
59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2014 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __EXPORTDIALOG_H
|
|
#define __EXPORTDIALOG_H
|
|
|
|
#include "ui_ExportDialog.h"
|
|
#include "lib/pki_base.h"
|
|
|
|
class MainWindow;
|
|
class QPixmap;
|
|
|
|
class exportType {
|
|
public:
|
|
enum etype { Separator, PEM, PEM_chain, PEM_trusted, PEM_all,
|
|
DER, PKCS7, PKCS7_chain, PKCS7_trusted, PKCS7_all,
|
|
PKCS12, PKCS12_chain, PEM_cert_key, PEM_cert_pk8,
|
|
PEM_key, PEM_private, PEM_private_encrypt, DER_private,
|
|
DER_key, PKCS8, PKCS8_encrypt, SSH2_public,
|
|
PEM_selected, PKCS7_selected, Index,
|
|
ETYPE_max };
|
|
enum etype type;
|
|
QString desc;
|
|
QString extension;
|
|
exportType(enum etype t, QString e, QString d) {
|
|
type = t; extension = e; desc = d;
|
|
}
|
|
exportType() { type = Separator; }
|
|
};
|
|
Q_DECLARE_METATYPE(exportType);
|
|
|
|
class ExportDialog: public QDialog, public Ui::ExportDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
protected:
|
|
QString filter;
|
|
MainWindow *mainwin;
|
|
QVector<QString> help;
|
|
|
|
public:
|
|
ExportDialog(MainWindow *mw, QString title, QString filt,
|
|
pki_base *pki, QPixmap *img, QList<exportType> types);
|
|
static bool mayWriteFile(const QString &fname);
|
|
enum exportType::etype type();
|
|
|
|
public slots:
|
|
void on_fileBut_clicked();
|
|
void on_exportFormat_activated(int);
|
|
void on_exportFormat_highlighted(int index);
|
|
void accept();
|
|
};
|
|
|
|
#endif
|