Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.