How do I generate a RSA key-pair in GnuTLS in C? What function do I need to call? Do I need to initialize the library first?
Asked
Active
Viewed 273 times
1 Answers
1
You should check Public key algorithms as per documentation. Basically initialize private key, then generate private key. Then you can export the generated keys.

muradm
- 1,973
- 19
- 30
-
Is there a list of options for gnutls_pk_algorithm_t? I can't find it on the web. I would like to use it for RSA. – SlowerPhoton Nov 11 '18 at 09:48
-
1Everything should be in documentation: https://gnutls.org/reference/gnutls-gnutls.html#gnutls-pk-algorithm-t – muradm Nov 11 '18 at 10:46