OpenSolaris 2009.06 Image Packaging System Guide
Previous Next

Associating a Key and Certificate With a Repository

This section provides information on how to associate a key and certificate with a repository. For the OpenSolaris 2009.06 release, the following repositories require a key and certificate for access:

  • pkg.sun.com/opensolaris/support

  • pkg.sun.com/opensolaris/extra

How to Associate a Key and Certificate With the pkg.sun.com/opensolaris/support Repository

Before You Begin

Ensure you have downloaded the key and certificate on to your system. See Obtaining Keys and Certificates for instructions.

  • Associate the pkg.sun.com/opensolaris/support which is a core repository, with the preferred publisher, opensolaris.org, and associate the key and certificate with the pkg.sun.com/opensolaris/support repository.

    Note - The \ in the command below is a line-continuation character and should not be entered when executing the command.


    $ pfexec pkg set-publisher -P -O pkg.sun.com/opensolaris/support\
     -k key_file_path/key_file -c cert_file_path/cert_file opensolaris.org
Example 7-2 Associate a Key, Certificate, and Publisher With pkg.sun.com/opensolaris/support

In this example, the key and certificate files are located in the /var/pkg/ssl/ directory. The repository is associated with the existing preferred publisher, opensolaris.org.

$ pfexec pkg set-publisher -P -O pkg.sun.com/opensolaris/support\
-k /var/pkg/ssl/OpenSolaris_extras.key.pem 
-c /var/pkg/ssl/OpenSolaris_extras.certificate.pem opensolaris.org
Next Steps

How to Associate a Key and Certificate With the pkg.sun.com/opensolaris/extra Repository

Before You Begin

Ensure you have downloaded the key and certificate on to your system. See Obtaining Keys and Certificates for instructions.

  • Add a publisher, associate the pkg.sun.com/opensolaris/extra repository with a new publisher, and associate a key and certificate with the pkg.sun.com/opensolaris/extra repository.

    pkg.sun.com/opensolaris/extra is a supplemental repository and does not need to be associated with a preferred repository.


    Note - The \ in the command below is a line-continuation character and should not be entered when executing the command.


    $ pfexec pkg set-publisher -O repository \
    -k key_file_path/key_file -c cert_file_path/cert_file new_publisher
Example 7-3 Associate a Key, Certificate, and Publisher With pkg.sun.com/opensolaris/extra

In this example, the key and certificate files are located in the /var/pkg/ssl/ directory. The repository is associated with the new publisher, extra.

$ pfexec pkg set-publisher -O https://pkg.sun.com/opensolaris/extra \
-k /var/pkg/ssl/OpenSolaris_extras.key.pem -c /var/pkg/ssl/OpenSolaris_extras.certificate.pem extra
Next Steps
Previous Next