I'm trying to install Sun/Oracle Studio on Solaris 11. We have a free developer account on the Sun Developer Network. I have the developer key and certificate. I scp'd them to the UltraSPARC workstation. I then ssh'd into the workstation (the workstation is headless).
According to How to Install a Certificate and Key for the Oracle Solaris Support Repository (this is step 2):
$ sudo pkg set-publisher -G '*' -M '*' \ -g https://pkg.oracle.com/solaris/support/ \ -c ~/pkg.oracle.com.certificate.pem \ -k ~/pkg.oracle.com.key.pem solaris pkg set-publisher: Could not refresh the catalog for solaris https protocol error: code: 401 reason: Unauthorized URL: 'https://pkg.oracle.com/solaris/support/solaris/catalog/1/catalog.attrs'
$ ls ~/pkg.* /export/home/jwalton/pkg.oracle.com.certificate.pem /export/home/jwalton/pkg.oracle.com.key.pem
Sun has a troubleshooting page at Cannot Access Publisher or Repository, but when I search for "pkg set-publisher: Could not refresh the catalog for solaris" there are no hits. (I must be the only guy on the planet getting that error).
I seem to be missing something or the docs are not quite correct.
How do I install the certificate and key so I can download Sun Studio?