[crypto,key] add function to export PEM and create a key

* freerdp_key_generate creates a new key
* freerdp_key_get_pem exports the key as PEM
This commit is contained in:
akallabeth
2025-04-22 10:56:13 +02:00
parent 0eefdbdb40
commit 2fb2e5f9c5
10 changed files with 192 additions and 19 deletions

View File

@@ -255,7 +255,7 @@ static BOOL wf_peer_read_settings(freerdp_peer* client)
&(PrivateKeyFile)))
PrivateKeyFile = _strdup("server.key");
rdpPrivateKey* key = freerdp_key_new_from_file(PrivateKeyFile);
rdpPrivateKey* key = freerdp_key_new_from_file_enc(PrivateKeyFile, NULL);
free(PrivateKeyFile);
if (!key)