错误提示
Error: The server at 'https://gis.sample.cn:6443/arcgis/admin/info' returned an error. Could not decrypt token. Token may not be valid.
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout cert.key -out cert.crt -config req.conf -extensions v3_req
openssl pkcs12 -export -in cert.crt -inkey cert.key -out cert.pfx
req.conf
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = US
ST = California
L = Los Angeles
O = Internet Corporation for Assigned Names and Numbers
OU = IT Operations
CN = webgis.chinadci.com.cn
[v3_req]
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth
subjectAltName = @alt_names
[alt_names]
DNS.1 = webgis.chinadci.com.cn