LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   evolution setup assistant in ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/evolution-setup-assistant-in-ubuntu-823461/)

linuxlover.chaitanya 08-02-2010 03:48 AM

Yes you can delete it that way. You need to be sure you give the command on the right directory.

Eric beat me with the typing speed.

Xanios 08-02-2010 03:50 AM

Hi,

it still doesn't get deleted. $dir/cacert.pem still remains.

EricTRA 08-02-2010 03:55 AM

Hello,

Are you logged in as root or as regular user? If regular user try executing the command with sudo?
Code:

sudo rm -r /etc/ssl/CA/cacert.pm
Kind regards,

Eric

Xanios 08-02-2010 04:02 AM

still can't.

Code:

xanios@ubuntu:~$ sudo rm -r /etc/ssl/CA/cacert.pm
[sudo] password for xanios:
rm: cannot remove `/etc/ssl/CA/cacert.pm': No such file or directory

does it mean i have to delete it using this:

Code:

sudo rm -r /etc/ssl/CA/$dir/cacert.pem

linuxlover.chaitanya 08-02-2010 04:04 AM

That is what I said. You need to be sure of the location of the certificate and at which location you give the command. It says there is no file you are trying to delete. Either the location is incorrect or the filename. verify both.

Xanios 08-02-2010 04:08 AM

Hi,

When i first created the CA Certificate, i issued the command at home directory:

Code:

xanios@ubuntu:~$ /usr/lib/ssl/misc/CA.pl -newca
i supposed that is called home directory. so by right when i delete the certificate from the same home directory, it should work.

EricTRA 08-02-2010 04:21 AM

Hello,

When you create a certificate with OpenSSL it uses the /etc/ssl/openssl.conf file to get the preferences. Did you check that file as I posted for the location of where the CA certificate will be saved? Check the directory as linuxlover.chaitanya indicated:
Code:

ls -al /etc/ssl/CA
to see if the file exists.

One thing comes to mind. When you executed the command did you accept the default or did you provide a name for the certificate? The first question when you run
Code:

/usr/lib/ssl/misc/CA.pl -newca
is to provide a filename or press enter to create.

If you typed a name for the certificate then of course cacert will not exist. Post the output of the command typed above to see what's in that directory.

Kind regards,

Eric

Xanios 08-02-2010 04:23 AM

Hi,

Code:

xaniosg@ubuntu:~$ sudo ls -al /etc/ssl/CA
[sudo] password for xanios:
ls: cannot access /etc/ssl/CA: No such file or directory

I did not provide a name for the certificate, i just press 'enter'. So it's the default one.

Code:

[ CA_default ]
dir                = ./demoCA                # Where everything is kept
certificate        = $dir/cacert.pem <<        # The CA certificate


linuxlover.chaitanya 08-02-2010 04:36 AM

Your directory where certificate is located is demoCA

Xanios 08-02-2010 04:40 AM

Hello,

Okay thanks, didn't notice it.

So i should go into demoCA first and delete the file which is:

Code:

xanios@ubuntu:~$ cd demoCA
xanios@ubuntu:~/demoCA$ sudo rm -r /etc/ssl/CA/cacert.pm
[sudo] password for xanios:
rm: cannot remove `/etc/ssl/CA/cacert.pm': No such file or directory

cd [something] is to go into a directory right.
but why they still give me 'cannot remove...'
Sorry, quite new in linux

EricTRA 08-02-2010 04:42 AM

Hi,

Beaten by linuxlover.chaitanya this time :)

As indicated before, the openssl.conf file holds your default configuration and it says it's saving in ./demoCA. This means that where you execute the command to create the certificate, that's where a directory demoCA will be created holding your certificate files.

Since you executed the command in your home directory you should have that demoCA directory there.

Kind regards,

Eric

EricTRA 08-02-2010 04:43 AM

Quote:

Originally Posted by Xanios (Post 4052409)
Hello,

Okay thanks, didn't notice it.

So i should go into demoCA first and delete the file which is:

Code:

xanios@ubuntu:~$ cd demoCA
xanios@ubuntu:~/demoCA$ sudo rm -r /etc/ssl/CA/cacert.pm
[sudo] password for xanios:
rm: cannot remove `/etc/ssl/CA/cacert.pm': No such file or directory

cd [something] is to go into a directory right.
but why they still give me 'cannot remove...'
Sorry, quite new in linux

Hi,

When in the demoCA directory type:
Code:

ls -al
and post the output here.

Kind regards,

Eric

EricTRA 08-02-2010 04:45 AM

Oops,

Just noticed:

When you're in the demoCA dir just type:
Code:

sudo rm -r cacert.pem
and not
Code:

sudo rm -r /etc/ssl/CA/cacert.pm
Kind regards,

Eric

Xanios 08-02-2010 04:46 AM

Hi,

this is the output:

Code:

xanios@ubuntu:~/demoCA$ ls -al
total 44
drwxr-xr-x  6 xanios xanios 4096 2010-08-02 00:43 .
drwxr-xr-x 41 xanios xanios 4096 2010-08-02 00:44 ..
-rw-r--r--  1 xanios xanios 3477 2010-08-02 00:43 cacert.pem
-rw-r--r--  1 xanios xanios  704 2010-08-02 00:43 careq.pem
drwxr-xr-x  2 xanios xanios 4096 2010-08-02 00:41 certs
drwxr-xr-x  2 xanios xanios 4096 2010-08-02 00:41 crl
-rw-r--r--  1 xanios xanios    3 2010-08-02 02:27 crlnumber
-rw-r--r--  1 xanios xanios    0 2010-08-02 02:27 index.txt
-rw-r--r--  1 xanios xanios  21 2010-08-02 00:43 index.txt.attr
-rw-r--r--  1 xanios xanios    0 2010-08-02 00:41 index.txt.old
drwxr-xr-x  2 xanios xanios 4096 2010-08-02 00:43 newcerts
drwxr-xr-x  2 xanios xanios 4096 2010-08-02 00:41 private
-rw-r--r--  1 xanios xanios  17 2010-08-02 00:43 serial


linuxlover.chaitanya 08-02-2010 04:48 AM

Quote:

Originally Posted by Xanios (Post 4052409)
Hello,

Okay thanks, didn't notice it.

So i should go into demoCA first and delete the file which is:

Code:

xanios@ubuntu:~$ cd demoCA
xanios@ubuntu:~/demoCA$ sudo rm -r /etc/ssl/CA/cacert.pm
[sudo] password for xanios:
rm: cannot remove `/etc/ssl/CA/cacert.pm': No such file or directory

cd [something] is to go into a directory right.
but why they still give me 'cannot remove...'
Sorry, quite new in linux

You are still deleting the file from /etc/ssl/CA directory. You need to delete file from demoCA directory.

cd to demoCA with
cd demoCA and now
rm -v cacert.pem


All times are GMT -5. The time now is 11:45 PM.