curl commands fails with HTTP/1.1 401 Unauthorized error

(Doc ID 2336881.1)

Last updated on DECEMBER 11, 2017

Applies to:

Oracle Database Backup Service - Version N/A to N/A
Oracle Database as a Service - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Symptoms

DBaaS backup to Cloud Storage or curl commands to cloud service fails with following message:

curl -v -X GET -u abc.xyz@orgnization.com.au https://identitydomain.storage.oraclecloud.com/v1/Storage-identitydomain
Enter host password for user 'abc.xyz@orgnization.com.au':
* About to connect() to identitydomain.storage.oraclecloud.com port 443 (#0)
* Trying 129.154.1.4... connected
* Connected to identitydomain.storage.oraclecloud.com (123.124.1.4) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
* subject: CN=*.storage.oraclecloud.com,OU=Oracle CSEC SYDNEY,O=Oracle Corporation,L=Redwood City,ST=California,C=US
* start date: Sep 11 00:00:00 2017 GMT
* expire date: Dec 11 23:59:59 2018 GMT
* common name: *.storage.oraclecloud.com
* issuer: CN=Symantec Class 3 Secure Server CA - G4,OU=Symantec Trust Network,O=Symantec Corporation,C=US
* Server auth using Basic with user 'abc.xyz@orgnization.com.au'
> GET /v1/Storage-identitydomain HTTP/1.1
> Authorization: Basic abcdefghijklmnopqrstuvqxyzabcdefghijklmnopqrstuvwxyz
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: identitydomain.storage.oraclecloud.com
> Accept: */*
>
< HTTP/1.1 401 Unauthorized                  <=---------------------------
< X-Trans-Id: txef4b3a7168ab44e5a40f5-005a24e98cga
< WWW-Authenticate: Token
< Content-Type: text/plain;charset=UTF-8
< Content-Length: 27
< Date: Mon, 04 Dec 2017 06:22:04 GMT
< Server: Oracle-Storage-Cloud-Service
<
* Connection #0 to host identitydomain.storage.oraclecloud.com left intact
* Closing connection #0

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms