Commit 9806b3b
debug: add intermediate logging to GenerateSelfSignedTLS
Add 3 debug log calls to the GenerateSelfSignedTLS function in
internal/proxy/tls.go to improve observability during TLS certificate
generation:
- Log CA certificate creation with serial number and validity period
- Log server certificate creation with DNS names and IP addresses
- Log certificate file paths after writing all three PEM files
- Log successful TLS key pair loading
These intermediate checkpoints complement the existing entry/exit logs,
making it easier to pinpoint where certificate generation fails during
troubleshooting (e.g. key generation vs cert signing vs file I/O vs
key-pair loading).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 893fa02 commit 9806b3b
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| 154 | + | |
151 | 155 | | |
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
| |||
0 commit comments