aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-12-19 08:31:22 -0500
committerUnknwon <u@gogs.io>2018-12-19 08:31:22 -0500
commite70e72e025db44bc7f27d10ffcb716300101cb5c (patch)
treea5871d418ddf1891bb1572d6e8d0072b662c0a6a
parente2ce6a0dab93358fa91f473e0e4cfe025ee4ec28 (diff)
pkg/ssh: specify ssh-keygen to always generate PEM format
-rw-r--r--gogs.go2
-rw-r--r--pkg/ssh/ssh.go2
-rw-r--r--templates/.VERSION2
3 files changed, 3 insertions, 3 deletions
diff --git a/gogs.go b/gogs.go
index f520b771..2944e49e 100644
--- a/gogs.go
+++ b/gogs.go
@@ -16,7 +16,7 @@ import (
"github.com/gogs/gogs/pkg/setting"
)
-const APP_VER = "0.11.83.1218"
+const APP_VER = "0.11.84.1219"
func init() {
setting.AppVer = APP_VER
diff --git a/pkg/ssh/ssh.go b/pkg/ssh/ssh.go
index 41f1b975..a8cefabb 100644
--- a/pkg/ssh/ssh.go
+++ b/pkg/ssh/ssh.go
@@ -166,7 +166,7 @@ func Listen(host string, port int, ciphers []string) {
keyPath := filepath.Join(setting.AppDataPath, "ssh/gogs.rsa")
if !com.IsExist(keyPath) {
os.MkdirAll(filepath.Dir(keyPath), os.ModePerm)
- _, stderr, err := com.ExecCmd(setting.SSH.KeygenPath, "-f", keyPath, "-t", "rsa", "-N", "")
+ _, stderr, err := com.ExecCmd(setting.SSH.KeygenPath, "-f", keyPath, "-t", "rsa", "-m", "PEM", "-N", "")
if err != nil {
panic(fmt.Sprintf("Fail to generate private key: %v - %s", err, stderr))
}
diff --git a/templates/.VERSION b/templates/.VERSION
index 5f92e3b1..8e5c632d 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.11.83.1218
+0.11.84.1219