File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,9 @@ def set_gateway_ssl(
148
148
if cert_file :
149
149
try :
150
150
with open (cert_file , "r" ) as f :
151
- cert_content = f .read ()
151
+ cert_content = (
152
+ f .read ().replace ("\n " , "\\ n" ).replace ("\t " , "\\ t" )
153
+ )
152
154
cert_file_name = cert_file
153
155
except OSError :
154
156
print (
@@ -160,7 +162,9 @@ def set_gateway_ssl(
160
162
if key_file :
161
163
try :
162
164
with open (key_file , "r" ) as f :
163
- key_content = f .read ()
165
+ key_content = (
166
+ f .read ().replace ("\n " , "\\ n" ).replace ("\t " , "\\ t" )
167
+ )
164
168
key_file_name = key_file
165
169
except OSError :
166
170
print (
@@ -169,6 +173,8 @@ def set_gateway_ssl(
169
173
)
170
174
sys .exit (1 )
171
175
176
+ print (cert_content )
177
+
172
178
base .get_client ().install .set_gateway_ssl (
173
179
cert_content , cert_file_name , key_content , key_file_name
174
180
)
You can’t perform that action at this time.
0 commit comments