SSLServerCert Parameter (Connect-GitHub Cmdlet)
TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。
Syntax
Connect-GitHub -SSLServerCert string
Data Type
cstr
Default Value
""
Remarks
If you are using a TLS/SSL connection, use this property to specify the TLS/SSL certificate to be accepted from the server. You can supply any certificate that is part of the certificate chain that issued your server's certificate, including the Root CA (Certificate Authority) or any intermediate CAs. Using the Root CA can cause all certificates that are part of the same chain to be validated. If you specify a value for this property, all other certificates that are not trusted by the machine are rejected.
This property can take the following forms:
| Description | Example |
| A full PEM Certificate (example shortened for brevity) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
| A path to a local file containing the certificate | C:\cert.cer |
| The public key (example shortened for brevity) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
| The MD5 Thumbprint (hex values can also be either space- or colon-separated) | ecadbdda5a1529c58a1e9e09828d70e4 |
| The SHA1 Thumbprint (hex values can also be either space- or colon-separated) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
Note: It is possible to use '*' to signify that all certificates should be accepted, but due to security concerns this is not recommended.