B.12. gateway server add

授权 SGD 服务器使用 SGD Gateway。

语法

gateway server add --server server-name 
                   --certfile cert-file 
                   --url server-url 
                 [ --ssl-certfile ssl-cert ]

描述

下表显示了此命令的可用选项。

选项

描述

--server

SGD 服务器的 DNS 名称

--cert-file

SGD 服务器的证书颁发机构 (Certificate Authority, CA) 证书

--url

SGD Web 服务器的 URL

--ssl-certfile

SGD 服务器的 SSL 证书

gateway server add 命令执行以下操作:

注意

使用 gateway server add 后,您必须重新启动 SGD Gateway 才能使任何更改生效。

示例

以下示例使用别名 sgd.example.com 将 CA 证书 PeerCAcert.pem 添加到 SGD Gateway 密钥库。还使用别名 sgd.example.com-ssl 将SSL 证书 cert.pem 添加到密钥库。

# /opt/SUNWsgdg/bin/gateway server add --server sgd.example.com \
--certfile PeerCAcert.pem \
--url https://sgd.example.com \
--ssl-certfile cert.pem

在该示例中,SGD Web 服务器的 URL https://sgd.example.com 添加到反向代理负载平衡组,并在 /opt/SUNWsgdg/httpd/apache-version/conf/extra/gateway/servers/conf/sgd.example.com.conf 中创建配置文件。