3.3.7 sslpasswd
The sslpasswd command creates a password file for the password-protected server private key.
Synopsis
sslpasswd server-private-key-file-name password-file-name
Storage location
Application Server installation directory/httpsd/sbin
Function
Before using the password-protected server private key, you can save the password in a file and then set the directive, so that you do not have to enter the password when the Web server starts. The procedure is described below.
-
Use the hwskeygen command to create a password-protected server private key.
-
Use the sslpasswd command to create a password file.
-
In httpsd.conf, set both the SSLCertificateKeyPassword directive that specifies the created password file and the SSLCertificateKeyFile directive that specifies the server private file.
-
Start or restart the Web server.
Be careful not to reveal the contents of the password file. To prohibit access from other users, set directory permissions or file permissions for both the directory that stores the server private key and the directory that stores the password file.
Execution permission
Superuser
Arguments
- server-private-key-file-name
-
Specify the password-protected server private key.
- Password-file-name
-
Specify the name of the file that outputs the password file.
Examples
sslpasswd httpsdkey.pem .keypasswd
Exit Status
Exit Status |
Explanation |
---|---|
0 |
The command terminated normally. |
Other than 0 |
The command terminated abnormally. |
Notes
-
You cannot specify the name of an existing file as the name of the password file.
-
In UNIX, you cannot use the password file created by using the Windows sslpasswd command.
-
In Windows, you cannot use the password file created by using the UNIX sslpasswd command.