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
This man owns $321M in bitcoin — but he can't access it because he lost his password | CBC Radio
Convert 10 BTC to USD (10 Bitcoin to United States Dollar)
Cappacuolo Pronunciation
Ffxiv Shelfeye Reaver
Best Big Jumpshot 2K23
El Paso Pet Craigslist
Cad Calls Meriden Ct
50 Meowbahh Fun Facts: Net Worth, Age, Birthday, Face Reveal, YouTube Earnings, Girlfriend, Doxxed, Discord, Fanart, TikTok, Instagram, Etc
Encore Atlanta Cheer Competition
Hallowed Sepulchre Instances & More
T&G Pallet Liquidation
Strange World Showtimes Near Amc Braintree 10
Fire Rescue 1 Login
Transformers Movie Wiki
Lima Crime Stoppers
Citymd West 146Th Urgent Care - Nyc Photos
Kinkos Whittier
OpenXR support for IL-2 and DCS for Windows Mixed Reality VR headsets
The Witcher 3 Wild Hunt: Map of important locations M19
Alexandria Van Starrenburg
"Une héroïne" : les funérailles de Rebecca Cheptegei, athlète olympique immolée par son compagnon | TF1 INFO
Palm Springs Ca Craigslist
Glenda Mitchell Law Firm: Law Firm Profile
Universal Stone Llc - Slab Warehouse & Fabrication
Drug Test 35765N
Routing Number For Radiant Credit Union
104 Presidential Ct Lafayette La 70503
Jesus Revolution Showtimes Near Regal Stonecrest
4Oxfun
Claio Rotisserie Menu
Carroway Funeral Home Obituaries Lufkin
Netspend Ssi Deposit Dates For 2022 November
Weather October 15
Jailfunds Send Message
Parent Management Training (PMT) Worksheet | HappierTHERAPY
Angel del Villar Net Worth | Wife
Save on Games, Flamingo, Toys Games & Novelties
The Legacy 3: The Tree of Might – Walkthrough
Elisabeth Shue breaks silence about her top-secret 'Cobra Kai' appearance
Ise-Vm-K9 Eol
PruittHealth hiring Certified Nursing Assistant - Third Shift in Augusta, GA | LinkedIn
Sun Tracker Pontoon Wiring Diagram
Tripadvisor Vancouver Restaurants
Charli D'amelio Bj
Headlining Hip Hopper Crossword Clue
Sc Pick 3 Past 30 Days Midday
Missed Connections Dayton Ohio
Product Test Drive: Garnier BB Cream vs. Garnier BB Cream For Combo/Oily Skin
How to Get a Check Stub From Money Network
Jovan Pulitzer Telegram
Noaa Duluth Mn
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.