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(
148148 if cert_file :
149149 try :
150150 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+ )
152154 cert_file_name = cert_file
153155 except OSError :
154156 print (
@@ -160,7 +162,9 @@ def set_gateway_ssl(
160162 if key_file :
161163 try :
162164 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+ )
164168 key_file_name = key_file
165169 except OSError :
166170 print (
@@ -169,6 +173,8 @@ def set_gateway_ssl(
169173 )
170174 sys .exit (1 )
171175
176+ print (cert_content )
177+
172178 base .get_client ().install .set_gateway_ssl (
173179 cert_content , cert_file_name , key_content , key_file_name
174180 )
You can’t perform that action at this time.
0 commit comments