Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

OpenSolaris 2008.11 Image Packaging System Guide
Previous Next

Associating a Key and Certificate With a Repository

After you have obtained your key and certificate, you can choose a repository as the default authority for pkg commands.

How to Associate a Key and Certificate With a Repository

  1. (Optional) Switch to a new authority or add a new authority.
    • If you want to associate a key and certificate to the /release repository, skip to the next step. By default, the installed product has a preferred authority of opensolaris.org served by the repository at the URL: https://pkg.opensolaris.org/release.

    • If you want to have access to the /support and /extra repositories, you must switch to that authority.

    $ pfexec pkg set-authority -O path_to_authority authority
    -O path_to_authority

    Specifies the repository that you want to access.

    authority

    Specifies the preferred authority.

  2. Associate a key and certificate with a repository.
    $ pfexec pkg set-authority -k key_file_path -c cert_file_path authority
    -k key_file_path

    Specifies the path to the key file and the key file name.

    -c cert_file_path

    Specifies the path to the certificate and the certificate file name.

    authority

    Specifies the preferred repository.

Example 4-1 How to Associate a Key and Certificate With the /release Repository

In this example, the /release repository is associated with the opensolaris.org preferred authority.

$ pfexec pkg set-authority -k key_file -c cert_file opensolaris.org
Example 4-2 How to Associate a Key and Certificate With the /support Repository

In this example, the repository's default location is switched to the /support repository. Then, the key and certificate are associated with the opensolaris.org preferred authority.

$ pfexec pkg set-authority -O https://pkg.sun.com/opensolaris/support \ opensolaris.org 
$ pfexec pkg set-authority -k key_file -c cert_file opensolaris.org
Example 4-3 How to Associate a Key and Certificate With the /extra Repository

In this example, a new repository is added, extra.opensolaris.org. Then, the key and certificate are associated with the opensolaris.org preferred authority.

$ pfexec pkg set-authority -O https://pkg.sun.com/opensolaris/extra \ extra.opensolaris.org 
$ pfexec pkg set-authority -k key_file -c cert_file opensolaris.org
Next Steps
Previous Next

 
 
  Published under the terms fo the Public Documentation License Version 1.01. Design by Interspire