20 lines
440 B
C++
20 lines
440 B
C++
/**
|
|
* SPDX-FileCopyrightText: 2023 Albert Vaca <albertvaka@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
*/
|
|
|
|
#ifndef SSLHELPER_H
|
|
#define SSLHELPER_H
|
|
|
|
#include <QSslCertificate>
|
|
#include <QSslKey>
|
|
#include <QString>
|
|
|
|
namespace SslHelper
|
|
{
|
|
QSslKey generateRsaPrivateKey();
|
|
QSslCertificate generateSelfSignedCertificate(const QSslKey &privateKey, const QString &commonName);
|
|
}
|
|
|
|
#endif
|