Including the Pyca cryptography library  |  Cloud KMS Documentation  |  Google Cloud (2024)

Stay organized with collections Save and categorize content based on your preferences.

This page describes how to update the Google Cloud CLI to enable support forautomatically wrapping keys for secure import into Cloud Key Management Service, byinstalling thePyca cryptography library. Version 2.2.0or higher adds support for the required aes_key_wrap_with_padding wrappingmechanism.

Before you begin

  • Install or upgrade the Google Cloud CLI to version 253.0.0 orhigher.
  • Install the pip command if possible. pip is the platform-independentcommand-line interface to thePython Package Index. Thepackage manager provided by your operating system may not provide version2.2.0 or higher of the Pyca cryptographic library.

Installing and using pip

You can install and use pip on Linux, macOS, or Windows systems.

This command installs the library into your user environment, specifying theminimum version to install. To install system-wide, omit the--user flag. You may need to install pip as a privileged user.

pip install --user "cryptography>=2.2.0"

After installing the Pyca cryptographic libraries, you mustenable site packages so the gcloud CLI can usethe libraries.

Installing on Linux using a package manager

Follow these instructions on Linux systems if you can't use the pip command.

Debian or Ubuntu

If you use a system based on Debian or Ubuntu, you can install the Pycacryptographic library using the apt-get command.

  1. Check the versions of the python-cryptography package available in thepackage database. Version 2.2.0 or higher is required.

    apt policy python-cryptography
  2. Install the package.

    sudo apt-get install python-cryptography

    If necessary, specify the version to install.

    sudo apt-get install python-cryptography=version

After installing the Pyca cryptographic libraries, you mustenable site packages so the gcloud CLI can usethe libraries.

Red Hat, CentOS, or SUSE

If your system uses RPMs for package management, you can install the Pycacrytographic library using the yum command.

  1. Check the versions of python-cryptography available in the packagedatabase. Version 2.2.0 or higher is required.

    yum --showduplicates list python2-cryptography
  2. Install the package.

    sudo yum install python2-cryptography

    If necessary, specify the version to install.

    sudo yum install python2-cryptography-version

After installing the Pyca cryptographic libraries, you mustenable site packages so the gcloud CLI can usethe libraries.

Enabling site packages

By default, the Google Cloud CLI ignores Python libraries installed on your localsystem. To allow the Google Cloud CLI to use the Pyca cryptographic library, youneed to enable site packages.

To enable site packages, set theCLOUDSDK_PYTHON_SITEPACKAGES environment variable to 1. With site packagesenabled, the gcloud CLI can use extra libraries outside of thegoogle-cloud-sdk/lib directory.

Linux

export CLOUDSDK_PYTHON_SITEPACKAGES=1

macOS

export CLOUDSDK_PYTHON_SITEPACKAGES=1

Windows

set CLOUDSDK_PYTHON_SITEPACKAGES=1

Enabling site packages may cause some gcloud CLI commands to fail.It is recommended that you disable site packagesafter importing your keys.

Disabling site packages

After you finish importing keys, it is recommended that you disable sitepackages on systems where you use the gcloud CLI. To disable sitepackages, set CLOUDSDK_PYTHON_SITEPACKAGES to 0.

Linux

export CLOUDSDK_PYTHON_SITEPACKAGES=0

macOS

export CLOUDSDK_PYTHON_SITEPACKAGES=0

Windows

set CLOUDSDK_PYTHON_SITEPACKAGES=0

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-12 UTC.

Including the Pyca cryptography library  |  Cloud KMS Documentation  |  Google Cloud (2024)
Top Articles
Real Estate - France | Statista Market Forecast
Top 35 Tourist Sight Seeing Attractions in NYC | Sea The City
Fernald Gun And Knife Show
Netr Aerial Viewer
Minooka Channahon Patch
Palm Coast Permits Online
Login Page
Combat level
J & D E-Gitarre 905 HSS Bat Mark Goth Black bei uns günstig einkaufen
Valley Fair Tickets Costco
La connexion à Mon Compte
Ventura Craigs List
Slapstick Sound Effect Crossword
Swimgs Yung Wong Travels Sophie Koch Hits 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Springs Cow Dog Pig Hollywood Studios Beach House Flying Fun Hot Air Balloons, Riding Lessons And Bikes Pack Both Up Away The Alpha Baa Baa Twinkle
Garrick Joker'' Hastings Sentenced
Red Heeler Dog Breed Info, Pictures, Facts, Puppy Price & FAQs
Culos Grandes Ricos
Bank Of America Financial Center Irvington Photos
Acts 16 Nkjv
Espn Horse Racing Results
Understanding Gestalt Principles: Definition and Examples
Apartments / Housing For Rent near Lake Placid, FL - craigslist
Fleet Farm Brainerd Mn Hours
Albertville Memorial Funeral Home Obituaries
Jail Roster Independence Ks
Street Fighter 6 Nexus
Used 2 Seater Go Karts
Boneyard Barbers
How To Make Infinity On Calculator
Whas Golf Card
Newcardapply Com 21961
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Iban's staff
Spinning Gold Showtimes Near Emagine Birch Run
Devin Mansen Obituary
Edict Of Force Poe
Cbs Fantasy Mlb
Riverton Wyoming Craigslist
Lake Andes Buy Sell Trade
Birmingham City Schools Clever Login
5A Division 1 Playoff Bracket
Alpha Labs Male Enhancement – Complete Reviews And Guide
Costco Gas Foster City
Love Words Starting with P (With Definition)
Ehc Workspace Login
Lesly Center Tiraj Rapid
Rocket League Tracker: A useful tool for every player
Who Is Nina Yankovic? Daughter of Musician Weird Al Yankovic
Texas 4A Baseball
Latest Posts
Article information

Author: Fr. Dewey Fisher

Last Updated:

Views: 5402

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Fr. Dewey Fisher

Birthday: 1993-03-26

Address: 917 Hyun Views, Rogahnmouth, KY 91013-8827

Phone: +5938540192553

Job: Administration Developer

Hobby: Embroidery, Horseback riding, Juggling, Urban exploration, Skiing, Cycling, Handball

Introduction: My name is Fr. Dewey Fisher, I am a powerful, open, faithful, combative, spotless, faithful, fair person who loves writing and wants to share my knowledge and understanding with you.