< Back

Add-GcSqlSslEphemeral

Mon Jan 13, 2020 11:05 pm

NAME Add-GcSqlSslEphemeral



SYNOPSIS

Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific

to the target instance. Users may use the certificate to authenticate as themselves when connecting to the

database.





SYNTAX

Add-GcSqlSslEphemeral [-Project <string>] [-Instance] <string> [-PublicKey] <string> [<CommonParameters>]





DESCRIPTION

Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific

to the target instance. Users may use the certificate to authenticate as themselves when connecting to the

database.





PARAMETERS

-Project <string>

Name of the project. Defaults to the Cloud SDK configuration for properties if not specified.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Instance <string>

Cloud SQL instance name.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PublicKey <string>

PEM encoded public key to include in the signed certificate. Should be RSA or EC. Line endings should be LF.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

PEM encoded public key to include in the signed certificate. Should be RSA or EC. Line endings should be LF.





OUTPUTS

Google.Apis.SQLAdmin.v1beta4.Data.SslCert





---------- EXAMPLE 1 ----------



PS C:\\> Add-GcSqlSslEphemeral "myInstance" "-----BEGIN PUBLIC KEY-----..."



Adds an ephemeral SSL Certificate to the instance "myInstance"



RELATED LINKS