Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Saving an unencrypted copy of a file encrypted with vi Post 302897550 by spacebar on Monday 14th of April 2014 05:52:03 PM
Old 04-14-2014
Try saving the file with :X and no key.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to decrypt a file which is encrypted in UNIX, In Windows NT

Hi, I want to encrypt a file in UNIX(HP-UX) and Transfer to a FTP server. Our FTP server is Windows NT. SO, how can i decrypt the file which is encrypted in UNIX, in Windows NT. Please, help me this is urgent. Siva Gorantla:confused: (3 Replies)
Discussion started by: gorantla
3 Replies

2. UNIX for Advanced & Expert Users

netrc file encrypted password

Hi, I do not want the plaintext password to appear in the netrc file. So I want to encrypt the password. Is there a way to encrypt the password and still make ftp to use the netrc ? Thanks in advance. -Gow:confused: (2 Replies)
Discussion started by: ggowrish
2 Replies

3. Shell Programming and Scripting

Retain file permissions when saving .sh file from internet [OS X]

Hello. I have written a bash script that I am sharing with an OS X community I am a member of. The purpose of the script is to execute a series of commands for members without them having to get involved with Terminal, as it can be daunting for those with no experience of it at all. I have renamed... (4 Replies)
Discussion started by: baza210
4 Replies

4. UNIX for Dummies Questions & Answers

how to run an ENCRYPTED file?

Hello sir, we are able to do : But when I goto /bin or /usr/bin to see the code of "ls". I found it to be encrypted. So can u please tell me how to encrypt a code in such a way that the user can run it but cannot see the source code. example: if I have a shell script named "sample.sh" as... (5 Replies)
Discussion started by: nsharath
5 Replies

5. Shell Programming and Scripting

FTP file from MF to AIX, fully encrypted

Hi All, I have connected to MainFrame system from Unix AIX Server then using ftp i get the file "NJUSP_XYXYXY_NONONO" to Unix. Now when i tried opening this file using cat/more i am getting the content fully in encrypted format. please help me to read the content of this file from my Unix... (5 Replies)
Discussion started by: Arunprasad
5 Replies

6. Solaris

How edit a file encrypted with openssl ?

i have file encrypted with openssl and i can decrypt and view its content by below code openssl enc -d -blowfish -pass file:secret_key -in input_file now i need to edit the input_file . i have to remove three lines from this file . how can this be done ? (3 Replies)
Discussion started by: chidori
3 Replies

7. Programming

[Solved] Removing duplicates from the file and saving as new file

Dear All I have 200 data files and each files has many duplicates. I am looking for the automated awk script such that it checks and removes the duplicates from the each file and saving them as new files for all 200 files in the respective folder. For example my data looks like this.. ... (12 Replies)
Discussion started by: bala06
12 Replies

8. UNIX for Dummies Questions & Answers

Using the encrypted password of the shadow file

i have an application that uses the encrypted password that's in the /etc/shadow file. i copied the line for the particular username i was interested it in from shadow file and i pasted it into the password file of the application. the application is nagios. this application allowed that... (5 Replies)
Discussion started by: SkySmart
5 Replies

9. UNIX for Advanced & Expert Users

How To Find GPG Keys In Encrypted File With Out Decrypting it?

Hello All, Is there a way to determine how many public keys are embedded or used to encrypt in a GPG file with out decrypting the actual encrypted file. I know i can see the keys & email id's used when we decrypt it, but curious to find a command if any to know with out decrypting the actual file... (2 Replies)
Discussion started by: Ariean
2 Replies

10. Shell Programming and Scripting

Find the original file size of encrypted file

Hi, I am trying to find out the original file size of an encrypted file in SunOS. The file was decrypted with gpg command. I want to know the size of the orginal file without decrypting it. I am using the below command, but it is not working for big files(more than 1 GB). gpg --passphrase... (4 Replies)
Discussion started by: vsachan
4 Replies
certmonger(1)						      General Commands Manual						     certmonger(1)

NAME
getcert SYNOPSIS
getcert request [options] DESCRIPTION
Tells certmonger to use an existing key pair (or to generate one if one is not already found in the specified location), to generate a signing request using the key pair, and to submit them for signing to a CA. KEY AND CERTIFICATE STORAGE OPTIONS
-d DIR Use an NSS database in the specified directory for storing this certificate and key. -n NAME Use the key with this nickname to generate the signing request. If no such key is found, generate one. Give the enrolled certifi- cate this nickname, too. Only valid with -d. -t TOKEN If the NSS database has more than one token available, use the token with this name for storing and accessing the certificate and key. This argument only rarely needs to be specified. Only valid with -d. -f FILE Store the issued certificate in this file. For safety's sake, do not use the same file specified with the -k option. -k FILE Use the key stored in this file to generate the signing request. If no such file is found, generate a new key pair and store them in the file. Only valid with -f. KEY ENCRYPTION OPTIONS
-p FILE Encrypt private key files or databases using the PIN stored in the named file as the passphrase. -P PIN Encrypt private key files or databases using the specified PIN as the passphrase. Because command-line arguments to running pro- cesses are trivially discoverable, use of this option is not recommended except for testing. KEY GENERATION OPTIONS
-g BITS In case a new key pair needs to be generated, this option specifies the size of the key. If not specified, a reasonable default (currently 2048 bits) will be used. TRACKING OPTIONS
-r Attempt to obtain a new certificate from the CA when the expiration date of a certificate nears. This is the default setting. -R Don't attempt to obtain a new certificate from the CA when the expiration date of a certificate nears. If this option is specified, an expired certificate will simply stay expired. -I NAME Assign the specified nickname to this task. If this option is not specified, a name will be assigned automatically. ENROLLMENT OPTIONS
-c NAME Enroll with the specified CA rather than a possible default. The name of the CA should correspond to one listed by getcert list- cas. -T NAME Request a certificate using the named profile, template, or certtype, from the specified CA. SIGNING REQUEST OPTIONS
If none of -N, -U, -K, -E, and -D are specified, a default group of settings will be used to request an SSL server certificate for the cur- rent host, with the host Kerberos service as an additional name. -N NAME Set the subject name to include in the signing request. The default used is CN=hostname, where hostname is the local hostname. -u keyUsage Add an extensionRequest for the specified keyUsage to the signing request. The keyUsage value is expected to be one of these names: digitalSignature nonRepudiation keyEncipherment dataEncipherment keyAgreement keyCertSign cRLSign encipherOnly decipherOnly -U EKU Add an extensionRequest for the specified extendedKeyUsage to the signing request. The EKU value is expected to be an object iden- tifier (OID), but some specific names are also recognized. These are some names and their associated OID values: id-kp-serverAuth 1.3.6.1.5.5.7.3.1 id-kp-clientAuth 1.3.6.1.5.5.7.3.2 id-kp-codeSigning 1.3.6.1.5.5.7.3.3 id-kp-emailProtection 1.3.6.1.5.5.7.3.4 id-kp-timeStamping 1.3.6.1.5.5.7.3.8 id-kp-OCSPSigning 1.3.6.1.5.5.7.3.9 id-pkinit-KPClientAuth 1.3.6.1.5.2.3.4 id-pkinit-KPKdc 1.3.6.1.5.2.3.5 id-ms-kp-sc-logon 1.3.6.1.4.1.311.20.2.2 -K NAME Add an extensionRequest for a subjectAltName, with the specified Kerberos principal name as its value, to the signing request. -E EMAIL Add an extensionRequest for a subjectAltName, with the specified email address as its value, to the signing request. -D DNSNAME Add an extensionRequest for a subjectAltName, with the specified DNS name as its value, to the signing request. OTHER OPTIONS
-B command When ever the certificate is saved to the specified location, run the specified command as the client user before saving the cer- tificate. -C command When ever the certificate is saved to the specified location, run the specified command as the client user after saving the certifi- cate. -v Be verbose about errors. Normally, the details of an error received from the daemon will be suppressed if the client can make a diagnostic suggestion. BUGS
Please file tickets for any that you find at https://fedorahosted.org/certmonger/ SEE ALSO
certmonger(8) getcert(1) getcert-list(1) getcert-list-cas(1) getcert-resubmit(1) getcert-start-tracking(1) getcert-stop-tracking(1) cert- monger-certmaster-submit(8) certmonger-ipa-submit(8) certmonger_selinux(8) certmonger Manual 9 October 2012 certmonger(1)
All times are GMT -4. The time now is 07:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy