mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-05 05:27:23 -04:00
- CryptoPage now shows and exports clean certificate, without sslid & co
- ConnectFriendWizard exports the certificate with additional informations like sslid & co git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3142 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1585859896
commit
540e99bc48
@ -661,7 +661,7 @@ void CertificatePage::loadFriendCert() {
|
||||
void CertificatePage::generateCertificateCalled() {
|
||||
qDebug() << " generateCertificateCalled";
|
||||
|
||||
std::string cert = rsPeers->saveCertificateToString(rsPeers->getOwnId());
|
||||
std::string cert = rsPeers->GetRetroshareInvite();
|
||||
if (cert.empty()) {
|
||||
QMessageBox::information(this, tr("RetroShare"),
|
||||
tr("Sorry, create certificate failed"),
|
||||
@ -677,7 +677,7 @@ void CertificatePage::generateCertificateCalled() {
|
||||
|
||||
if (qdir.isEmpty() == false) {
|
||||
QFile CertFile (qdir);
|
||||
if (CertFile.open(QIODevice::WriteOnly | QIODevice::Text)) {
|
||||
if (CertFile.open(QIODevice::WriteOnly/* | QIODevice::Text*/)) {
|
||||
if (CertFile.write(QByteArray(cert.c_str())) > 0) {
|
||||
QMessageBox::information(this, tr("RetroShare"),
|
||||
tr("Certificate file successfully created"),
|
||||
|
@ -81,10 +81,10 @@ CryptoPage::load()
|
||||
void
|
||||
CryptoPage::loadPublicKey()
|
||||
{
|
||||
QFont font("Courier New",9,50,false) ;
|
||||
ui.certtextEdit->setFont(font) ;
|
||||
QFont font("Courier New",9,50,false) ;
|
||||
ui.certtextEdit->setFont(font) ;
|
||||
|
||||
ui.certtextEdit->setPlainText(QString::fromStdString(rsPeers->GetRetroshareInvite()));
|
||||
ui.certtextEdit->setPlainText(QString::fromStdString(rsPeers->saveCertificateToString(rsPeers->getOwnId())));
|
||||
ui.certtextEdit->setReadOnly(true);
|
||||
ui.certtextEdit->setMinimumHeight(200);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user