Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
24 lines (20 sloc) 1.003 kb
import os.path
# The email address for your GCS service account being used for signatures.
# Bucket name to use for writing example file.
BUCKET_NAME = 'bucket-name'
# Object name to use for writing example file.
OBJECT_NAME = 'object.txt'
# Set this to the path of your service account private key file, in DER format.
# PyCrypto requires using the DER key format, but GCS provides key files in
# pkcs12 format. To convert between formats, you can use the provided commands
# below.
# The default password for p12 file is `notasecret`
# Given a GCS key in pkcs12 format, convert it to PEM using this command:
# openssl pkcs12 -in path/to/key.p12 -nodes -nocerts > path/to/key.pem
# Given a GCS key in PEM format, convert it to DER format using this command:
# openssl rsa -in privatekey.pem -inform PEM -out privatekey.der -outform DER
PRIVATE_KEY_PATH = os.path.join(os.path.dirname(__file__), 'privatekey.der')
Jump to Line
Something went wrong with that request. Please try again.