| Top |
| gboolean | gcr_certificate_request_capable () |
| void | gcr_certificate_request_capable_async () |
| gboolean | gcr_certificate_request_capable_finish () |
| GcrCertificateRequest * | gcr_certificate_request_prepare () |
| GcrCertificateRequestFormat | gcr_certificate_request_get_format () |
| GckObject * | gcr_certificate_request_get_private_key () |
| void | gcr_certificate_request_set_cn () |
| gboolean | gcr_certificate_request_complete () |
| void | gcr_certificate_request_complete_async () |
| gboolean | gcr_certificate_request_complete_finish () |
| guchar * | gcr_certificate_request_encode () |
This is an object that allows creation of certificate requests. A certificate request is sent to a certificate authority to request an X.509 certificate.
Use gcr_certificate_request_prepare() to create a blank certificate
request for a given private key. Set the common name on the certificate
request with gcr_certificate_request_set_cn(), and then sign the request
with gcr_certificate_request_complete_async().
gboolean gcr_certificate_request_capable (GckObject *private_key,GCancellable *cancellable,GError **error);
Check whether GcrCertificateRequest is capable of creating a request
for the given private_key
.
void gcr_certificate_request_capable_async (GckObject *private_key,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously check whether GcrCertificateRequest is capable of creating
a request for the given private_key
.
gboolean gcr_certificate_request_capable_finish (GAsyncResult *result,GError **error);
Get the result for asynchronously check whether GcrCertificateRequest is
capable of creating a request for the given private_key
.
GcrCertificateRequest * gcr_certificate_request_prepare (GcrCertificateRequestFormat format,GckObject *private_key);
Create a new certificate request, in the given format for the private key.
GcrCertificateRequestFormat
gcr_certificate_request_get_format (GcrCertificateRequest *self);
Get the format of this certificate request.
GckObject *
gcr_certificate_request_get_private_key
(GcrCertificateRequest *self);
Get the private key this certificate request is for.
void gcr_certificate_request_set_cn (GcrCertificateRequest *self,const gchar *cn);
Set the common name encoded in the certificate request.
gboolean gcr_certificate_request_complete (GcrCertificateRequest *self,GCancellable *cancellable,GError **error);
Complete and sign a certificate request, so that it can be encoded and sent to a certificate authority.
This call may block as it signs the request using the private key.
void gcr_certificate_request_complete_async (GcrCertificateRequest *self,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously complete and sign a certificate request, so that it can be encoded and sent to a certificate authority.
This call will return immediately and complete later.
gboolean gcr_certificate_request_complete_finish (GcrCertificateRequest *self,GAsyncResult *result,GError **error);
Finish an asynchronous operation to complete and sign a certificate request.
guchar * gcr_certificate_request_encode (GcrCertificateRequest *self,gboolean textual,gsize *length);
Encode the certificate request. It must have been completed with
gcr_certificate_request_complete() or gcr_certificate_request_complete_async()
If textual
is FALSE, the output is a DER encoded certificate request.
If textual
is TRUE, the output is encoded as text. For PKCS#10 requests this
is done using the OpenSSL style PEM encoding.