BeijingCSC-1# mkdir /ifs/local
BeijingCSC-1# cd /ifs/local
BeijingCSC-1# cp /usr/local/apache2/conf/ssl.key/server.key .
BeijingCSC-1# ls
server.key
Generate a new crt file;
BeijingCSC-1# openssl req -new -days 730 -nodes -x509 -key server.key -out server.crt
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:CN
State or Province Name (full name) [Some-State]:Beijing
Locality Name (eg, city) []:Beijing
Organization Name (eg, company) [Internet Widgits Pty Ltd]:EMC
Organizational Unit Name (eg, section) []:Isilon
Common Name (e.g. server FQDN or YOUR name) []:api.isilon.com
Email Address []:[email protected]
BeijingCSC-1# ls
server.crt server.key
BeijingCSC-1# pwd
/ifs/local
Backup default key and crt first:
BeijingCSC-1# isi_for_array -s 'cp /usr/local/apache2/conf/ssl.key/server.key /ifs/local/server.key.bak'
BeijingCSC-1# isi_for_array -s 'cp /usr/local/apache2/conf/ssl.crt/server.crt /ifs/local/server.crt.bak'
Replace key and crt:
BeijingCSC-1# isi services -a isi_webui disable
BeijingCSC-1# chmod 640 server.key
BeijingCSC-1# isi_for_array -s 'cp /ifs/local/server.key /usr/local/apache2/conf/ssl.key/server.key'
BeijingCSC-1# isi_for_array -s 'cp /ifs/local/server.crt /usr/local/apache2/conf/ssl.crt/server.crt'
BeijingCSC-1# isi services -a isi_webui enable
Now, you can access the Isilon Web GUI to confirm the certification has been updated.
Isilon: /usr/local/apache2/conf/ssl.crt/server.crt local laptop directory: C:\Users\gaoz2\Downloads\
Windows> "C:\Program Files\Java\jre1.8.0_121\bin\keytool.exe" -import -v -trustcacerts -alias api.isilon.com -file "C:\Users\gaoz2\Downloads\server.crt" -keystore "C:\Program Files\Java\jre1.8.0_151\lib\security\cacerts" -keypass changeit -storepass changeit
Windows> "C:\Program Files\Java\jre1.8.0_121\bin\keytool.exe" -list -v -keystore "C:\Program Files\Java\jre1.8.0_151\lib\security\cacerts" | findstr api
输入密钥库口令: changeit
别名: api.isilon.com
所有者: [email protected], CN=api.isilon.com, OU=Isilon, O=EMC, L=Beijing, ST=Beijing, C=CN
发布者: [email protected], CN=api.isilon.com, OU=Isilon, O=EMC, L=Beijing, ST=Beijing, C=CN
10.32.32.132 api.isilon.com
ping api.isilon.com
String HOST = "api.isilon.com";
String USER = "root";
String PASSWORD = "Password1!";
String PORT = "8080";