globus_gsi_cert_utils(3)
πΈ globus_gsi_cert_utils π
okay bestie, so this is the manual for globus_gsi_cert_utils(3) β it lives in the Library Functions Manual, and it's literally the entire glow-up guide for the Globus GSI Certificate Handling Utilities. grab a matcha, we're doing certificates β¨
π NAME π
globus_gsi_cert_utils β Globus GSI Certificate Handling Utilities π
- Globus GSI Certificate Handling Utilities.
β¨ SYNOPSIS β¨
π¦ Topics
- Activation β Activation.
- Cert Utils Constants β Cert Utils Constants.
π§ Functions
globus_result_t globus_gsi_cert_utils_make_time (const ASN1_TIME *ctm, time_t *newtime)Convert ASN1_TIME to time_t.globus_result_t globus_gsi_cert_utils_get_cert_type (X509 *cert, globus_gsi_cert_utils_cert_type_t *type)Get the X509 certificate type.globus_result_t globus_gsi_cert_utils_get_x509_name (const char *subject_string, int length, X509_NAME *x509_name)Get the certificate name.globus_result_t globus_gsi_cert_utils_get_base_name (X509_NAME *subject, STACK_OF(X509) *cert_chain)Get the base certificate name from a certificate chain.globus_result_t globus_gsi_cert_utils_get_eec (STACK_OF(X509) *cert_chain, X509 **eec)Get the end-entity certificate from a certificate chain.globus_result_t globus_gsi_cert_utils_get_identity_cert (STACK_OF(X509) *cert_chain, X509 **identity_cert)Get the identity certificate from a certificate chain.
π Detailed Description π
Globus GSI Certificate Handling Utilities.
The Globus GSI Certificate Handling Utilities library. This library contains helper functions for dealing with certificates. like, the whole point is helping you handle certs without losing your mind π«Ά
- Activation
- Globus GSI Certificate Handling Utilities
- Cert Utils Constants
π Function Documentation π
π globus_result_t globus_gsi_cert_utils_get_base_name (X509_NAME * subject, STACK_OF(X509) * cert_chain)
Get the base certificate name from a certificate chain. Get the base name of a proxy certificate. Given an X509 name, strip off the proxy related /CN components to get the base name of the certificate's subject. it's giving "take off the costume, show me who you really are" π
Parameters
- subject β Pointer to an
X509_NAMEobject which gets stripped - cert_chain β The certificate chain used to detect the number of CNs to strip. This is done by figuring out the number of proxies in the chain.
Returns
GLOBUS_SUCCESS
π globus_result_t globus_gsi_cert_utils_get_cert_type (X509 * cert, globus_gsi_cert_utils_cert_type_t * type)
Get the X509 certificate type. Determine the type of the given X509 certificate. For the list of possible values returned, see globus_gsi_cert_utils_cert_type_t. vibe check on the cert, basically β¨
Parameters
- cert β The X509 certificate
- type β The returned X509 certificate type
Returns
GLOBUS_SUCCESS or an error captured in a globus_result_t
π¦ globus_result_t globus_gsi_cert_utils_get_eec (STACK_OF(X509) * cert_chain, X509 ** eec)
Get the end-entity certificate from a certificate chain. Get the end-entity certificate associated with a certificate chain. the EEC, the main character of the chain, no cap π
Parameters
- cert_chain β Certificate chain to inspect.
- eec β Pointer to be set to the EEC value from within the cert chain. Must freed by the caller.
β οΈ bestie, note it says Must freed by the caller β that memory is yours to free, so don't ghost it π
π globus_result_t globus_gsi_cert_utils_get_identity_cert (STACK_OF(X509) * cert_chain, X509 ** identity_cert)
Get the identity certificate from a certificate chain. Get the identity-providing certificate associated with a certificate chain. This may be an independent proxy or a end-entity certificate. so like, whoever's actually holding the identity here πͺͺβ¨
Parameters
- cert_chain β Certificate chain to inspect.
- identity_cert β Pointer to be set to the certificate value from within the cert chain. Must freed by the caller.
β οΈ same deal as above: Must freed by the caller. free it, bestie, fr fr π
π globus_result_t globus_gsi_cert_utils_get_x509_name (const char * subject_string, int length, X509_NAME * x509_name)
Get the certificate name. Get the X509_NAME from a subject string. OpenSSL doesn't provide this function, probably because it shouldn't be used. If you are getting an X509_NAME from just a string, its impossible to verify its integrity.
π not the manpage itself saying it probably because it shouldn't be used β the audacity. but okay, we're still telling you what it does. if you're getting an X509_NAME from just a string, it's impossible to verify its integrity. periodt, that's not a vibe, that's a warning.
Parameters
- subject_string β The subject in the format:
"/O=Grid/OU=..." - length β The length of the subject string
- x509_name β The resulting
X509_NAMEobject
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned
πΈ globus_result_t globus_gsi_cert_utils_make_time (const ASN1_TIME * ctm, time_t * newtime)
Convert ASN1_TIME to time_t. Convert a ASN1_TIME structure to a time_t. glow-up: ASN1 time to normal-people time π°οΈβ¨
Parameters
- ctm β The
ASN1_TIMEto convert - newtime β The converted time
Returns
GLOBUS_SUCCESS or GLOBUS_FAILURE on error
π Author π
Generated automatically by Doxygen for globus_gsi_cert_utils from the source code.
okay and for the lil sign-off bestie: this whole page is from globus_gsi_cert_utils, Version 10.11, on the globus_gsi_cert_utils(3) manual page β Doxygen did the writing, we just did the slaying πππ¦ slay, go handle your certs, and don't forget to free your pointers β¨
π¦ where this page comes from
- fedora 44: globus-gsi-cert-utils-doc 10.11-5.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-gsi-cert-utils-doc 10.11-2build1 Β· Apache-2.0
- ubuntu stonking: libglobus-gsi-cert-utils-doc 10.11-3build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms