Sponsored Content
Full Discussion: Date conversion in ab i
Top Forums UNIX for Dummies Questions & Answers Date conversion in ab i Post 302465049 by DGPickett on Thursday 21st of October 2010 02:39:57 PM
Old 10-21-2010
Acquired Brain Injury ? Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Date Conversion

Hello, I want to convert MM DD YYYY date format to MM-DD-YYYY format. For exemple: I have to convert Nov 28 2005 to 28-11-2005. Thenks for youf help. DAFI (2 Replies)
Discussion started by: dafidak
2 Replies

2. Shell Programming and Scripting

date conversion

Hi everybody: Could anybody tell me how I convert from a julian date, with shell comands, to gregorian. Thanks in advance. (2 Replies)
Discussion started by: tonet
2 Replies

3. Shell Programming and Scripting

date conversion

file1 E106,0,1/9/1993,0,E001,E003,A,45200,3766.667,21.730769 E108,0,2/3/1995,0,E001,E003,A,15000,1250,7.211538 E109,0,06-mar-07,0,E001,E001,A,78000,6500,37.5 E110,0,09-dec-2008,0,E001,E001,A,56000,4666.667,26.923077 E104,0,06/04/1994,0,E001,E003,A,95000,7916.667,45.673077... (14 Replies)
Discussion started by: charandevu
14 Replies

4. Shell Programming and Scripting

Date Conversion

Hi, Does anyone know (in KSH, CSH, SED or AWK), how to convert date text in a file from: EX: May232008 to: 05232008 Thanks, (3 Replies)
Discussion started by: jgrant746
3 Replies

5. Shell Programming and Scripting

Date conversion

Hi I want to convert MAY 05 2005 01:15:00PM date format to 2005/05/05 01:15:00PM . CAn somebody suggest me a code ,I am new to unix shell programming. Thanks Arif (21 Replies)
Discussion started by: mab_arif16
21 Replies

6. Shell Programming and Scripting

Date conversion

Hi, I have the string YYYYMMDDHHMMSS like 20090801204150 and I need to convert it using the unix command date in the format: date "Saturday, 1 August 2009 20:40:59" All in one single Unix line if this is possible. What's the correct syntax? Steve Hagi (6 Replies)
Discussion started by: hagimeno
6 Replies

7. Shell Programming and Scripting

Conversion of date to Julian date

Hi Gurus, Need help in Conversion of date(2007-11-30) to Julian date(YYDDD)... '+%J' 2007-11-30 to 'YYDDD' Thanks (4 Replies)
Discussion started by: SeenuGuddu
4 Replies

8. Shell Programming and Scripting

Julian date to Calendar date conversion

Hi all, I require to convert julian date to normal calander date in unix for eg julian date=122 now i want corresponding calander date ---------------------------------------- gr8 if give very small command/script and please explain the steps as well(imp) Thanks ... (3 Replies)
Discussion started by: RahulJoshi
3 Replies

9. Shell Programming and Scripting

Date conversion

Trying to convert dates using a Perl Script but it has to accept formats like 3 letter month, day and year like Nov 02 2010 or 1/4/11 or 21 Feb 2011 and have it convert to something like October 20, 2011. Any ideas? (2 Replies)
Discussion started by: reduxeffect81
2 Replies

10. UNIX for Beginners Questions & Answers

Date conversion

Hi , we have a string with yyyymmdd format . how to know which date it is ? example:20120712-->sunday 20150228-->saturday 20140431-->invalid please suggest commands which work on below os : SunOS 5.10 shell: bash shell Thanks, Srinath. (10 Replies)
Discussion started by: srinadhreddy27
10 Replies
OPENSSL_CSR_NEW(3)							 1							OPENSSL_CSR_NEW(3)

openssl_csr_new - Generates a CSR

SYNOPSIS
mixed openssl_csr_new (array $dn, resource &$privkey, [array $configargs], [array $extraattribs]) DESCRIPTION
openssl_csr_new(3) generates a new CSR (Certificate Signing Request) based on the information provided by $dn, which represents the Distin- guished Name to be used in the certificate. Note You need to have a valid openssl.cnf installed for this function to operate correctly. See the notes under the installation section for more information. PARAMETERS
o $dn - The Distinguished Name to be used in the certificate. o $privkey -$privkey should be set to a private key that was previously generated by openssl_pkey_new(3) (or otherwise obtained from the other openssl_pkey family of functions). The corresponding public portion of the key will be used to sign the CSR. o $configargs - By default, the information in your system openssl.conf is used to initialize the request; you can specify a configuration file section by setting the config_section_section key of $configargs. You can also specify an alternative openssl configuration file by setting the value of the config key to the path of the file you want to use. The following keys, if present in $configargs behave as their equivalents in the openssl.conf, as listed in the table below. Configuration overrides +-------------------+--------------------------------------+---+ | $configargs key | | | | | | | | | type | | | | | | | | | | | | openssl.conf equivalent | | | | | | | | description | | | | | | +-------------------+--------------------------------------+---+ | digest_alg | | | | | | | | | | | | | string | | | | | | | | default_md | | | | | | | | Selects which digest method to use | | | | | | | x509_extensions | | | | | | | | | | | | | string | | | | | | | | x509_extensions | | | | | | | | Selects which extensions should be | | | | used when creating an x509 certifi- | | | | cate | | | | | | | req_extensions | | | | | | | | | | | | | string | | | | | | | | req_extensions | | | | | | | | Selects which extensions should be | | | | used when creating a CSR | | | | | | | private_key_bits | | | | | | | | | | | | | integer | | | | | | | | default_bits | | | | | | | | Specifies how many bits should be | | | | used to generate a private key | | | | | | | private_key_type | | | | | | | | | | | | | integer | | | | | | | | none | | | | | | | | Specifies the type of private key to | | | | create. This can be one of | | | | OPENSSL_KEYTYPE_DSA, OPENSSL_KEY- | | | | TYPE_DH or OPENSSL_KEYTYPE_RSA. The | | | | default value is OPENSSL_KEYTYPE_RSA | | | | which is currently the only sup- | | | | ported key type. | | | | | | | encrypt_key | | | | | | | | | | | | | boolean | | | | | | | | encrypt_key | | | | | | | | Should an exported key (with | | | | passphrase) be encrypted? | | | | | | |encrypt_key_cipher | | | | | | | | | | | | | integer | | | | | | | | none | | | | | | | | One of cipher constants. | | | | | | +-------------------+--------------------------------------+---+ o $extraattribs -$extraattribs is used to specify additional configuration options for the CSR. Both $dn and $extraattribs are associative arrays whose keys are converted to OIDs and applied to the relevant part of the request. RETURN VALUES
Returns the CSR. EXAMPLES
Example #1 Creating a self-signed-certificate <?php // Fill in data for the distinguished name to be used in the cert // You must change the values of these keys to match your name and // company, or more precisely, the name and company of the person/site // that you are generating the certificate for. // For SSL certificates, the commonName is usually the domain name of // that will be using the certificate, but for S/MIME certificates, // the commonName will be the name of the individual who will use the // certificate. $dn = array( "countryName" => "UK", "stateOrProvinceName" => "Somerset", "localityName" => "Glastonbury", "organizationName" => "The Brain Room Limited", "organizationalUnitName" => "PHP Documentation Team", "commonName" => "Wez Furlong", "emailAddress" => "wez@example.com" ); // Generate a new private (and public) key pair $privkey = openssl_pkey_new(); // Generate a certificate signing request $csr = openssl_csr_new($dn, $privkey); // You will usually want to create a self-signed certificate at this // point until your CA fulfills your request. // This creates a self-signed cert that is valid for 365 days $sscert = openssl_csr_sign($csr, null, $privkey, 365); // Now you will want to preserve your private key, CSR and self-signed // cert so that they can be installed into your web server, mail server // or mail client (depending on the intended use of the certificate). // This example shows how to get those things into variables, but you // can also store them directly into files. // Typically, you will send the CSR on to your CA who will then issue // you with the "real" certificate. openssl_csr_export($csr, $csrout) and var_dump($csrout); openssl_x509_export($sscert, $certout) and var_dump($certout); openssl_pkey_export($privkey, $pkeyout, "mypassword") and var_dump($pkeyout); // Show any errors that occurred here while (($e = openssl_error_string()) !== false) { echo $e . " "; } ?> PHP Documentation Group OPENSSL_CSR_NEW(3)
All times are GMT -4. The time now is 01:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy