mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 15:05:19 +03:00
[CSE] Adjust the CN accordingly to the server
This commit is contained in:
parent
131fd4e483
commit
7290cf2813
1 changed files with 4 additions and 1 deletions
|
@ -311,12 +311,15 @@ void ClientSideEncryption::generateKeyPair()
|
|||
QString ClientSideEncryption::generateCSR(EVP_PKEY *keyPair)
|
||||
{
|
||||
// OpenSSL expects const char.
|
||||
auto cnArray = _account->davUser().toLocal8Bit();
|
||||
qCInfo(lcCse()) << "Getting the following array for the account Id" << cnArray;
|
||||
|
||||
auto certParams = std::map<const char *, const char*>{
|
||||
{"C", "DE"},
|
||||
{"ST", "Baden-Wuerttemberg"},
|
||||
{"L", "Stuttgart"},
|
||||
{"O","Nextcloud"},
|
||||
{"CN", "www.nextcloud.com"}
|
||||
{"CN", cnArray.constData()}
|
||||
};
|
||||
|
||||
int ret = 0;
|
||||
|
|
Loading…
Reference in a new issue