certnanny / sscep

SSCEP is a command line client for the SCEP protocol
Other
175 stars 92 forks source link

Proxy broken on 0.10.0 ? #186

Open lukikr1 opened 4 days ago

lukikr1 commented 4 days ago

It seems there is some problem with proxy in version 0.10.0 When run like this: sscep enroll -t 5 -T 4 -R -p 10.1.69.95:8080 -u http://demo.one.digicert.com/mpki/api/(...) sscep: starting sscep, version 0.10.0 sscep: new transaction sscep: transaction id: D41D8CD98F00B204E9800998ECF8427E sscep: hostname: 10.1.69.95 sscep: directory: 10.1.69.95 sscep: port: 8080 sscep: SCEP_OPERATION_GETCAPS sscep: scep request: GET 10.1.69.95?operation=GetCACaps HTTP/1.1 Host: 10.1.69.95:8080 Connection: close (..) sscep: applying base64 encoding sscep: base64 encoded payload size: 3458 bytes sscep: scep request: GET 10.1.69.95?operation=PKIOperation&message=(...encoded...) HTTP/1.1 Host: 10.1.69.95:8080

And proxy error: The following error was encountered while trying to retrieve the URL: 10.1.69.95?operation=GetCACaps

Without proxy option: sscep enroll -t 5 -T 4 -R -u http://demo.one.digicert.com/mpki/api/(...) sscep: starting sscep, version 0.10.0 sscep: new transaction sscep: transaction id: D41D8CD98F00B204E9800998ECF8427E sscep: hostname: demo.one.digicert.com sscep: directory: mpki/api/v1/scep/2d6b9358-47be-4a9c-95ec-59ffbc1a6096/cgi-bin/pkiclient.exe sscep: port: 80 sscep: SCEP_OPERATION_GETCAPS sscep: scep request: GET /mpki/api/v1/scep/2d6b9358-47be-4a9c-95ec-59ffbc1a6096/cgi-bin/pkiclient.exe?operation=GetCACaps HTTP/1.1 Host: demo.one.digicert.com Connection: close

Similar request with 0.6.1 works ok.