---------- Post updated at 02:45 PM ---------- Previous update was at 02:27 PM ----------
Actually what I was supposed to get was something like this:
[root@server keyreq]# openssl req -newkey rsa:1024 -keyout server.pf.key -out req.pem
Generating a 1024 bit RSA private key
..++++++
.........++++++
writing new private key to 'server.pf.key'
Enter PEM pass phrase: ENTER A PASSPHRASE
Verifying - Enter PEM pass phrase: ENTER PASSPHRASE AGAIN
-----
I got nothing, it didn't create the files or ask me anything.
I tried it again and received an error:
openssl req -newkey rsa:1024 -keyout server.pf.key -out req.pem
ld.so.1: openssl: fatal: libssl.so.0.9.7: open failed: No such file or directory
Killed
you are on solaris 8? which packages have you installed? the link you provided lists 8 packages to install. your error message looks like you don't install them...
I'm on solaris 10, I couldn't find instructions for solaris 10 so I used the solaris 8 instructions. but used solaris 10 packages.
This is the package I actually used.
solaris 10 has all packages on board... remove the new packages with "pkgrm" and add /usr/sfw/bin to you path and try again with the "openssl" command.
No, it is because the directory where the command is located is missing from your PATH. Either use an explicit path as already suggested by DukeNuke2, or add the directory to your PATH. Note that adding "." to your PATH will work but is a bad practice, especially as you seem to run this as root.