Skip to content
Snippets Groups Projects
Commit 5179cf08 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

A little bit more verbose and troubleshooting info

parent 4ee7d998
No related branches found
No related tags found
No related merge requests found
...@@ -56,11 +56,12 @@ if (!(Test-Path $sshKeyName) ) { ...@@ -56,11 +56,12 @@ if (!(Test-Path $sshKeyName) ) {
} }
if (!(Test-Path $sshKeyName) ) { if (!(Test-Path $sshKeyName) ) {
"Key generation not successful" "Key generation not successful. Try yourself to see whats wrong:"
"$sshKeygenExe -b 4096 -f $sshKeyName -N '' "
exit exit
} }
"You now need to tell gitlab about this ssh public key and can proceed with what you want to install" "You now need to tell gitlab (Dennis Ahrens or Artiom Lukyanchyk) about this ssh public key"
"" ""
cat $sshPublicKey cat $sshPublicKey
"" ""
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
Use this repository to bootstrap git on your windows box. Use this repository to bootstrap git on your windows box.
## What it does in detail
* install [just-install](https://just-install.it/), if not present
* afterwards it install git, if not present
* creates an ssh keypair located in `C:\hshgitlab\id_rsa` and `C:\hshgitlab\id_rsa.pub`
* prints the public key on your console
## Usage ## Usage
Be careful, this executes code directly on your machine. You are expected to read the script before you execute it. Be careful, this executes code directly on your machine. You are expected to read the script before you execute it.
...@@ -10,10 +17,15 @@ Be careful, this executes code directly on your machine. You are expected to rea ...@@ -10,10 +17,15 @@ Be careful, this executes code directly on your machine. You are expected to rea
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://lab.it.hs-hannover.de/powershell/bootstrap-git/raw/master/Install.ps1')) Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://lab.it.hs-hannover.de/powershell/bootstrap-git/raw/master/Install.ps1'))
``` ```
## What it does in detail ## Troubleshouting
It might happen that you receive an error, because your OS is not willing to speak TLS1.2:
* The script install [just-install](https://just-install.it/), if not present. `The request was aborted: Could not create SSL/TLS secure channel`
* Afterwards it install git, if not present.
* Finally it creates an ssh keypair located in `C:\hshgitlab\id_rsa` and `C:\hshgitlab\id_rsa.pub` In this case you need to teach your windows that it should use TLS 1.2 using this command:
* It also prints the public key on your console in the end.
```powershell
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment