File: //snap/google-cloud-cli/current/help/man/man1/gcloud_iam_service-accounts_sign-blob.1
.TH "GCLOUD_IAM_SERVICE\-ACCOUNTS_SIGN\-BLOB" 1
.SH "NAME"
.HP
gcloud iam service\-accounts sign\-blob \- sign a blob with a managed service account key
.SH "SYNOPSIS"
.HP
\f5gcloud iam service\-accounts sign\-blob\fR \fIINPUT\-FILE\fR \fIOUTPUT\-FILE\fR \fB\-\-iam\-account\fR=\fIIAM_ACCOUNT\fR [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
This command signs a file containing arbitrary binary data (a blob) using a
system\-managed service account key.
If the service account does not exist, this command returns a
\f5PERMISSION_DENIED\fR error.
.SH "EXAMPLES"
To sign a blob file with a system\-managed service account key, run:
.RS 2m
$ gcloud iam service\-accounts sign\-blob \e
\-\-iam\-account=my\-iam\-account@my\-project.iam.gserviceaccount.com \e
input.bin output.bin
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIINPUT\-FILE\fR
A path to the blob file to be signed.
.TP 2m
\fIOUTPUT\-FILE\fR
A path the resulting signed blob will be written to.
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-iam\-account\fR=\fIIAM_ACCOUNT\fR
The service account to sign as.
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "SEE ALSO"
For more information on how this command ties into the wider cloud
infrastructure, please see
https://cloud.google.com/appengine/docs/java/appidentity/
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha iam service\-accounts sign\-blob
.RE
.RS 2m
$ gcloud beta iam service\-accounts sign\-blob
.RE