File indexing completed on 2024-04-28 04:57:03
0001 /** 0002 * SPDX-FileCopyrightText: 2023 Albert Vaca <albertvaka@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef SSLHELPER_H 0008 #define SSLHELPER_H 0009 0010 #include <QSslCertificate> 0011 #include <QSslKey> 0012 #include <QString> 0013 0014 namespace SslHelper 0015 { 0016 QSslKey generateRsaPrivateKey(); 0017 QSslCertificate generateSelfSignedCertificate(const QSslKey &privateKey, const QString &commonName); 0018 } 0019 0020 #endif