The KeyBuilder class is a tool for creating QSslKeys. More...
#include <KeyBuilder>
enum | KeyStrength { StrengthLow, StrengthNormal, StrengthHigh, StrengthUltra } |
QSslKey | generate ( QSsl::KeyAlgorithm algo, KeyStrength strength ) |
The KeyBuilder class is a tool for creating QSslKeys.
The KeyBuilder class provides an easy way to generate a new private key for an X.509 certificate.
Generates a new key using the specified algorithm and strength. The algorithm will generally be RSA. The various strengths allow you to specify the trade-off between the security of the key and the time involved in creating it.
Note that this method can take a considerable length of time to execute, so in gui applications it should be run in a worker thread.