Function
Valentcertificate_new
unstable since: 1.0
Declaration [src]
void
valent_certificate_new (
const char* path,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Get a TLS certificate and private key pair.
This ensures a TLS certificate with the filename certificate.pem
and
private key with filename private.pem
exist in a directory at path
.
If either one doesn’t exist, a new certificate and private key pair will be
generated. The common name will be set to a string returned by
g_uuid_string_random()
.
Get the result with valent_certificate_new_finish()
.
Available since: 1.0
Parameters
path
-
Type:
const char*
A directory path.
The data is owned by the caller of the function. The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows. cancellable
-
Type:
GCancellable
GCancellable
.The argument can be NULL
.The data is owned by the caller of the function. callback
-
Type:
GAsyncReadyCallback
A
GAsyncReadyCallback
.The argument can be NULL
. user_data
-
Type:
gpointer
User supplied data.
The argument can be NULL
.The data is owned by the caller of the function.