Sponsored Content
Operating Systems Solaris Keytool command to check expiration dates of certificates Post 302854153 by fop4658 on Monday 16th of September 2013 09:35:29 PM
Old 09-16-2013
Keytool command to check expiration dates of certificates

Friends,

I'm in search of a keytool command which pulls the expiration dates of certificates in keystore. I have around 200 certs in my keystore, so would like to know if we have any script/command which can pull expiration dates of certificates at one run.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Expiration dates of accounts' passwords ?

Hi How do I view/set the expiration dates of the accounts passwords in my FreeBSD ? Thanks in advance (1 Reply)
Discussion started by: sbayeta
1 Replies

2. UNIX for Advanced & Expert Users

How do I check file dates on remote machines

Hi .. I want to check the date for one file which is present on the remote machine. How do i do that?? Also if i'm only having the sudo rights .. can i do that with my login or do i need all the access rights?? Please let me know asap. (3 Replies)
Discussion started by: decci_7
3 Replies

3. AIX

Check the backup dates on Tape

Hi all I am using IBM machines with tape drive, what i do is go to informis and i insert the tape and run the command "ontape -s -L " and the level of backup that i want to take. Now what i want to check is which days are the backup being run, does the system create a log and stores info where... (0 Replies)
Discussion started by: masquerer
0 Replies

4. Cybersecurity

expiration of SSL Certificates

Does anyone know how to extract the expiration date of a Solaris 9 certificate? I have searched over the 'net and it seems this command ssl-cert-check comes up often but this does not work on my servers. Not sure how to extraxt the expiration dates of the SSL Certs so if anyone can help that would... (2 Replies)
Discussion started by: bluridge
2 Replies

5. Shell Programming and Scripting

UNIX Script to Check the Certificates

Hi All, Warm New Year Wishes to every one I am New to UNIX and i don't have much Experience on UNIX Scripting, so can someone help me out on below Request I have Digital certificates that are being used in My current project. All these Certificates are of Extensions (.cert and .pfx)... (1 Reply)
Discussion started by: manukonda0102
1 Replies

6. Shell Programming and Scripting

Script to check Digital Certificates Expiration

Hi All, I have certificates that are being used in my current Project and all the Certificates are of extension ( .pfx - Identities , .cert - trusted certificates etc). All these certificates will expire in some other time. Can someone help me out in providing a script that is used to check the... (0 Replies)
Discussion started by: manukonda0102
0 Replies

7. HP-UX

How to check password expiration date of particular user?

Hi Guys, I am new to HP-UX and want to find expiration date of particular user please also note i don't have root access on that server. for e.g. i have user abc on my HP box and want to know when its password going to expire and also when its password changed last time. I also try to... (7 Replies)
Discussion started by: Yasin Rakhangi
7 Replies

8. Shell Programming and Scripting

How to enforce interactive keytool?

i am reading line by line from a file as below while IFS= read -r var do ... ... ... done < "hello.txt" I added the keytool command in the do while loop as below. while IFS= read -r var do ... keytool -genkey -alias $fname -keyalg RSA -keystore $fname.jks -keysize 2048 ... done... (3 Replies)
Discussion started by: mohtashims
3 Replies

9. Programming

Question regarding keytool

I first generated jks using keytool -genkey -alias keyAlias-keyalg RSA -keypass changeit -storepass changeit keystore keystore.jksThen i generated the csr using keytool -certreq -alias $addr -sigalg SHA256withRSA -keystore $addr.jks -file $addr.csr Below is how i self sign and generate the... (0 Replies)
Discussion started by: mohtashims
0 Replies
hx509 certificate store functions(3)				Heimdalx509library			      hx509 certificate store functions(3)

NAME
hx509 certificate store functions - Functions int hx509_certs_init (hx509_context context, const char *name, int flags, hx509_lock lock, hx509_certs *certs) int hx509_certs_store (hx509_context context, hx509_certs certs, int flags, hx509_lock lock) void hx509_certs_free (hx509_certs *certs) int hx509_certs_start_seq (hx509_context context, hx509_certs certs, hx509_cursor *cursor) int hx509_certs_next_cert (hx509_context context, hx509_certs certs, hx509_cursor cursor, hx509_cert *cert) int hx509_certs_end_seq (hx509_context context, hx509_certs certs, hx509_cursor cursor) int hx509_certs_iter_f (hx509_context context, hx509_certs certs, int(*func)(hx509_context, void *, hx509_cert), void *ctx) int hx509_ci_print_names (hx509_context context, void *ctx, hx509_cert c) int hx509_certs_add (hx509_context context, hx509_certs certs, hx509_cert cert) int hx509_certs_find (hx509_context context, hx509_certs certs, const hx509_query *q, hx509_cert *r) int hx509_certs_filter (hx509_context context, hx509_certs certs, const hx509_query *q, hx509_certs *result) int hx509_certs_merge (hx509_context context, hx509_certs to, hx509_certs from) int hx509_certs_append (hx509_context context, hx509_certs to, hx509_lock lock, const char *name) int hx509_get_one_cert (hx509_context context, hx509_certs certs, hx509_cert *c) int hx509_certs_info (hx509_context context, hx509_certs certs, int(*func)(void *, const char *), void *ctx) Detailed Description See the Certificate store operations for description and examples. Function Documentation int hx509_certs_add (hx509_context context, hx509_certs certs, hx509_cert cert) Add a certificate to the certificiate store. The receiving keyset certs will either increase reference counter of the cert or make a deep copy, either way, the caller needs to free the cert itself. Parameters: context a hx509 context. certs certificate store to add the certificate to. cert certificate to add. Returns: Returns an hx509 error code. int hx509_certs_append (hx509_context context, hx509_certs to, hx509_lock lock, const char * name) Same a hx509_certs_merge() but use a lock and name to describe the from source. Parameters: context a hx509 context. to the store to merge into. lock a lock that unlocks the certificates store, use NULL to select no password/certifictes/prompt lock (see Locking and unlocking certificates and encrypted data.). name name of the source store Returns: Returns an hx509 error code. int hx509_certs_end_seq (hx509_context context, hx509_certs certs, hx509_cursor cursor) End the iteration over certificates. Parameters: context a hx509 context. certs certificate store to iterate over. cursor cursor that will keep track of progress, freed. Returns: Returns an hx509 error code. int hx509_certs_filter (hx509_context context, hx509_certs certs, const hx509_query * q, hx509_certs * result) Filter certificate matching the query. Parameters: context a hx509 context. certs certificate store to search. q query allocated with hx509 query functions functions. result the filtered certificate store, caller must free with hx509_certs_free(). Returns: Returns an hx509 error code. Return HX509_CERT_NOT_FOUND if no certificate in certs matched the query. int hx509_certs_find (hx509_context context, hx509_certs certs, const hx509_query * q, hx509_cert * r) Find a certificate matching the query. Parameters: context a hx509 context. certs certificate store to search. q query allocated with hx509 query functions functions. r return certificate (or NULL on error), should be freed with hx509_cert_free(). Returns: Returns an hx509 error code. Return HX509_CERT_NOT_FOUND if no certificate in certs matched the query. void hx509_certs_free (hx509_certs * certs) Free a certificate store. Parameters: certs certificate store to free. int hx509_certs_info (hx509_context context, hx509_certs certs, int(*)(void *, const char *) func, void * ctx) Print some info about the certificate store. Parameters: context a hx509 context. certs certificate store to print information about. func function that will get each line of the information, if NULL is used the data is printed on a FILE descriptor that should be passed in ctx, if ctx also is NULL, stdout is used. ctx parameter to func. Returns: Returns an hx509 error code. int hx509_certs_init (hx509_context context, const char * name, int flags, hx509_lock lock, hx509_certs * certs) Open or creates a new hx509 certificate store. Parameters: context A hx509 context name name of the store, format is TYPE:type-specific-string, if NULL is used the MEMORY store is used. flags list of flags: o HX509_CERTS_CREATE create a new keystore of the specific TYPE. o HX509_CERTS_UNPROTECT_ALL fails if any private key failed to be extracted. lock a lock that unlocks the certificates store, use NULL to select no password/certifictes/prompt lock (see Locking and unlocking certificates and encrypted data.). certs return pointer, free with hx509_certs_free(). int hx509_certs_iter_f (hx509_context context, hx509_certs certs, int(*)(hx509_context, void *, hx509_cert) func, void * ctx) Iterate over all certificates in a keystore and call an function for each fo them. Parameters: context a hx509 context. certs certificate store to iterate over. func function to call for each certificate. The function should return non-zero to abort the iteration, that value is passed back to the caller of hx509_certs_iter_f(). ctx context variable that will passed to the function. Returns: Returns an hx509 error code. int hx509_certs_merge (hx509_context context, hx509_certs to, hx509_certs from) Merge a certificate store into another. The from store is keep intact. Parameters: context a hx509 context. to the store to merge into. from the store to copy the object from. Returns: Returns an hx509 error code. int hx509_certs_next_cert (hx509_context context, hx509_certs certs, hx509_cursor cursor, hx509_cert * cert) Get next ceritificate from the certificate keystore pointed out by cursor. Parameters: context a hx509 context. certs certificate store to iterate over. cursor cursor that keeps track of progress. cert return certificate next in store, NULL if the store contains no more certificates. Free with hx509_cert_free(). Returns: Returns an hx509 error code. int hx509_certs_start_seq (hx509_context context, hx509_certs certs, hx509_cursor * cursor) Start the integration Parameters: context a hx509 context. certs certificate store to iterate over cursor cursor that will keep track of progress, free with hx509_certs_end_seq(). Returns: Returns an hx509 error code. HX509_UNSUPPORTED_OPERATION is returned if the certificate store doesn't support the iteration operation. int hx509_certs_store (hx509_context context, hx509_certs certs, int flags, hx509_lock lock) Write the certificate store to stable storage. Parameters: context A hx509 context. certs a certificate store to store. flags currently unused, use 0. lock a lock that unlocks the certificates store, use NULL to select no password/certifictes/prompt lock (see Locking and unlocking certificates and encrypted data.). Returns: Returns an hx509 error code. HX509_UNSUPPORTED_OPERATION if the certificate store doesn't support the store operation. int hx509_ci_print_names (hx509_context context, void * ctx, hx509_cert c) Iterate over all certificates in a keystore and call an function for each fo them. Parameters: context a hx509 context. certs certificate store to iterate over. func function to call for each certificate. The function should return non-zero to abort the iteration, that value is passed back to the caller of hx509_certs_iter(). Returns: Returns an hx509 error code. Function to use to hx509_certs_iter_f() as a function argument, the ctx variable to hx509_certs_iter_f() should be a FILE file descriptor. Parameters: context a hx509 context. ctx used by hx509_certs_iter_f(). c a certificate Returns: Returns an hx509 error code. int hx509_get_one_cert (hx509_context context, hx509_certs certs, hx509_cert * c) Get one random certificate from the certificate store. Parameters: context a hx509 context. certs a certificate store to get the certificate from. c return certificate, should be freed with hx509_cert_free(). Returns: Returns an hx509 error code. Version 1.5.2 11 Jan 2012 hx509 certificate store functions(3)
All times are GMT -4. The time now is 04:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy