Authenticate
WebLogic Server supports access to REST APIs over HTTPS. To access Oracle WebLogic Server REST APIs over HTTPS (that is, SSL/TLS), you must enable the domain-wide administration port. The administration port accepts only secure, SSL traffic, and all connections via the port require authentication by a server administrator. For information about enabling domain-wide administration port, see Configure the Domain-Wide Administration Port in the Oracle WebLogic Remote Console Online Help.
-
An SSL certificate authority (CA) certificate file or bundle to authenticate against any commercial CA certificate.
-
User name and password for your WebLogic Server Administrator account.
For example, to authenticate using cURL:
-
Set the cURL environment variable,
CURL_CA_BUNDLE
, to the location of your local CA certificate bundle. For information about CA certificate verification using cURL, see: http://curl.haxx.se/docs/sslcerts.html. -
Pass the user name and password for your WebLogic Server administrator account using the
--user
cURL option. -
Pass the
<request-header>
custom request header using the-H
cURL option.
curl -i -X GET --user <username>:<password> -H <request-header>:<value> https://<subdomain>.<domain>.com:<port>/<resource-path>