File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/common/http/controller Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ func (self Env) Create(http *gin.Context) {
221221 if s .content == "" {
222222 continue
223223 }
224- path := filepath .Join (client .CertRoot (), s .name )
224+ path := filepath .Join (storage. Local {}. GetCertPath (), client .CertRoot (), s .name )
225225 err := os .MkdirAll (filepath .Dir (path ), os .ModePerm )
226226 if err != nil {
227227 self .JsonResponseWithError (http , err , 500 )
Original file line number Diff line number Diff line change @@ -73,9 +73,9 @@ func (self Client) CommandParams() []string {
7373 result = append (result , "-H" , self .Address )
7474 if self .EnableTLS {
7575 result = append (result , "--tlsverify" ,
76- "--tlscacert" , self .TlsCa ,
77- "--tlscert" , self .TlsCert ,
78- "--tlskey" , self .TlsKey ,
76+ "--tlscacert" , filepath . Join (storage. Local {}. GetCertPath (), self .TlsCa ) ,
77+ "--tlscert" , filepath . Join (storage. Local {}. GetCertPath (), self .TlsCert ) ,
78+ "--tlskey" , filepath . Join (storage. Local {}. GetCertPath (), self .TlsKey ) ,
7979 )
8080 }
8181 return result
You can’t perform that action at this time.
0 commit comments