It cannot find the "ssl" folder after installed the OpenSSL

Issues related to applications and software problems
Post Reply
cyberseek
Posts: 2
Joined: 2017/08/16 09:46:09

It cannot find the "ssl" folder after installed the OpenSSL

Post by cyberseek » 2017/08/16 10:03:30

Hello Pro,

I followed the below link to install the openssl in CENTOS 7.
https://linoxide.com/security/make-ca-c ... authority/

Then I want to create the CA with the command : /usr/share/ssl/misc/CA.pl -newca, but I cannot locate the "ssl" folder.

Therefore I cannot create my own CA server.

Please help !

Thank you very much !!
cyberseek
Attachments
Please refer to the "Installed Packages".
Please refer to the "Installed Packages".
CentOS7-screen2-SSL.jpg (141.97 KiB) Viewed 4349 times
The path is /usr/share, and no "SSL" folder.
The path is /usr/share, and no "SSL" folder.
CentOS7-screen1-no-SSL.jpg (244.31 KiB) Viewed 4349 times

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: It cannot find the "ssl" folder after installed the OpenSSL

Post by TrevorH » 2017/08/16 10:32:08

Wrong path. Try running yum provides '*/CA.pl' to find out which package contains the CA.pl file and then yum install it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

poky
Posts: 108
Joined: 2013/03/27 12:18:03

Re: It cannot find the "ssl" folder after installed the OpenSSL

Post by poky » 2017/08/16 19:21:16

rpm -ql openssl | grep CA

/etc/pki/tls/misc/CA -newca

Direct create by openssl:
openssl genrsa -out CA.key 2048
openssl req -x509 -new -nodes -key CA.key -sha256 -days 10240 -out CA.pem

cyberseek
Posts: 2
Joined: 2017/08/16 09:46:09

Re: It cannot find the "ssl" folder after installed the OpenSSL

Post by cyberseek » 2017/08/29 06:45:21

poky wrote:rpm -ql openssl | grep CA

/etc/pki/tls/misc/CA -newca

Direct create by openssl:
openssl genrsa -out CA.key 2048
openssl req -x509 -new -nodes -key CA.key -sha256 -days 10240 -out CA.pem

The command not found ? --> CA -newca
Please refer to the attachment of screen
Command Not Found
Command Not Found
CentOS7-CommandNotFound.jpg (41.54 KiB) Viewed 4272 times
----------------------------------------------------------------------------

Sorry ! I an new for this. please explain the following 2 commands. Thank you very much !

"openssl genrsa -out CA.key 2048
openssl req -x509 -new -nodes -key CA.key -sha256 -days 10240 -out CA.pem"

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: It cannot find the "ssl" folder after installed the OpenSSL

Post by TrevorH » 2017/08/29 09:07:12

You need to use ./CA.pl since root's $PATH does not contain the current working directory by design.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply