Skip to content

Cannot upload existing CA Certificate or CA Certificate Key #15

@ajkblue

Description

@ajkblue

I have set it up with podman, running it with the following configuration which does work fine:

podman run -d \
        --name privaxy-serv \
        --network host \
        --user 1000:1000 \
        --userns keep-id \
        -e PRIVAXY_PROXY_PORT=8100 \
        -e PRIVAXY_WEB_PORT=8200 \
        -e PRIVAXY_IP_ADDRESS=192.168.12.10 \
        -e RUST_LOG=info \
        -v /home/server1/privaxy-serv/:/conf ghcr.io/joshrmcdaniel/privaxy:dev

I am getting the error "String contains an invalid character" when I try to upload both the CA Certificate and CA Certificate Key, or if I paste in the contents of the files. I tried to upload the previous certificate and key I was using for the other versions of Privaxy, I did not use the pre-generated one that was in the config file already.

Image

I was able to get around the certificate upload errors by manually editing the file at /home/server1/privaxy-serv/config and manually pasting in the certificate and key, which did work fine once restarting the container.

These are the errors that are printed to the browser console if it is of any use when I tried to upload the existing certificates (the first one from general.rs is when I tried to upload the CA Certificate, stating "Data provided to an operation does not meet requirements" and the second error "String contains an invalid character" happened when I tried to upload the CA Certificate Key).

ERROR web_frontend/src/general.rs:364 Data provided to an operation does not meet requirements web_frontend-f4d537620b91a4bc.js:678:17
    __wbg_error_696630710900ec44 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:678
    web_frontend-b9e99cd3c1058931.wasm.<wasm_logger::WasmLogger as log::Log>::log::hf60183aa4d007f20 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1193796
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::hf23d0207c64ee470 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:141579
    web_frontend-b9e99cd3c1058931.wasm.<yew::html::component::lifecycle::UpdateRunner<COMP> as yew::scheduler::Runnable>::run::hea62fb57e589a6a0 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1062048
    h7766d6b4897941ac http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:873685
    h7bb720f2a1615846 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1677303
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::{{closure}}::hf3ebe4bcb0ff64da http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:504999
    h4999488dd8e910e5 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1467572
    h5dc5ceb7a2665d1d http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760661
    web_frontend-b9e99cd3c1058931.wasm.<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h0fd61c9a0d691833 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760551
    __wbg_adapter_36 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:246
    real http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:211
    (Async: VoidFunction)
    __wbg_queueMicrotask_481971b0d87f3dd4 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:663
    hdac03aca370c702f http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1674395
    h48341f2abbf9af89 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1754250
    web_frontend-b9e99cd3c1058931.wasm.<T as wasm_bindgen::closure::WasmClosureFnOnce<A,R>>::into_fn_mut::{{closure}}::h4cc567d9366c2dfe http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1480266
    web_frontend-b9e99cd3c1058931.wasm.<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h0fd61c9a0d691833 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760551
    __wbg_adapter_36 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:246
    real http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:211
    (Async: promise callback)
    __wbg_then_a73caa9a87991566 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:655
    web_frontend-b9e99cd3c1058931.wasm.<wasm_bindgen_futures::JsFuture as core::convert::From<js_sys::Promise>>::from::ha5374e0414d3f671 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1620345
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::{{closure}}::hf3ebe4bcb0ff64da http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:499781
    h4999488dd8e910e5 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1467572
    h5dc5ceb7a2665d1d http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760661
    web_frontend-b9e99cd3c1058931.wasm.<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h0fd61c9a0d691833 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760551
    __wbg_adapter_36 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:246
    real http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:211
    (Async: VoidFunction)
    __wbg_queueMicrotask_481971b0d87f3dd4 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:663
    h812e7ef2547a08c5 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1624651
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::hf23d0207c64ee470 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:140763
    web_frontend-b9e99cd3c1058931.wasm.<yew::html::component::lifecycle::UpdateRunner<COMP> as yew::scheduler::Runnable>::run::hea62fb57e589a6a0 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1062048
    h7766d6b4897941ac http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:873685
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::{{closure}}::h43015262f78236da http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1443320
    h04c7ce8cf716dea0 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1601275
    hf6f971e526b47550 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1347094
    web_frontend-b9e99cd3c1058931.wasm.<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h0fd61c9a0d691833 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760551
    __wbg_adapter_36 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:246
    real http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:211
    (Async: EventHandlerNonNull)
    __wbg_setonload_0af77109dbfaa065 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:745
    h7dcc2a45c7303ce1 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1521995
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::hf23d0207c64ee470 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:140356
    web_frontend-b9e99cd3c1058931.wasm.<yew::html::component::lifecycle::UpdateRunner<COMP> as yew::scheduler::Runnable>::run::hea62fb57e589a6a0 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1062048
    h7766d6b4897941ac http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:873685
    haf41b3c6712ce6f4 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1706573
    he4e6ec12187ae226 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1578961
    web_frontend-b9e99cd3c1058931.wasm.<yew::html::listener::events::onclick::Wrapper as yew::virtual_dom::listeners::Listener>::handle::h70c3f1676af8128b http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1662306
    ha6877fefbd12bb20 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1085905
    h4c6a27fc27930f5d http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1651167
    h53ce6dd52b3dc4af http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1763717

ERROR web_frontend/src/general.rs:364 String contains an invalid character web_frontend-f4d537620b91a4bc.js:678:17
    __wbg_error_696630710900ec44 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:678
    web_frontend-b9e99cd3c1058931.wasm.<wasm_logger::WasmLogger as log::Log>::log::hf60183aa4d007f20 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1193796
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::hf23d0207c64ee470 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:141579
    web_frontend-b9e99cd3c1058931.wasm.<yew::html::component::lifecycle::UpdateRunner<COMP> as yew::scheduler::Runnable>::run::hea62fb57e589a6a0 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1062048
    h7766d6b4897941ac http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:873685
    h7bb720f2a1615846 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1677303
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::{{closure}}::hf3ebe4bcb0ff64da http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:504999
    h4999488dd8e910e5 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1467572
    h5dc5ceb7a2665d1d http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760661
    web_frontend-b9e99cd3c1058931.wasm.<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h0fd61c9a0d691833 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760551
    __wbg_adapter_36 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:246
    real http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:211
    (Async: VoidFunction)
    __wbg_queueMicrotask_481971b0d87f3dd4 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:663
    hdac03aca370c702f http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1674395
    h48341f2abbf9af89 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1754250
    web_frontend-b9e99cd3c1058931.wasm.<T as wasm_bindgen::closure::WasmClosureFnOnce<A,R>>::into_fn_mut::{{closure}}::h4cc567d9366c2dfe http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1480266
    web_frontend-b9e99cd3c1058931.wasm.<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h0fd61c9a0d691833 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760551
    __wbg_adapter_36 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:246
    real http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:211
    (Async: promise callback)
    __wbg_then_a73caa9a87991566 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:655
    web_frontend-b9e99cd3c1058931.wasm.<wasm_bindgen_futures::JsFuture as core::convert::From<js_sys::Promise>>::from::ha5374e0414d3f671 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1620345
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::{{closure}}::hf3ebe4bcb0ff64da http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:499781
    h4999488dd8e910e5 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1467572
    h5dc5ceb7a2665d1d http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760661
    web_frontend-b9e99cd3c1058931.wasm.<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h0fd61c9a0d691833 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760551
    __wbg_adapter_36 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:246
    real http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:211
    (Async: VoidFunction)
    __wbg_queueMicrotask_481971b0d87f3dd4 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:663
    h812e7ef2547a08c5 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1624651
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::hf23d0207c64ee470 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:140763
    web_frontend-b9e99cd3c1058931.wasm.<yew::html::component::lifecycle::UpdateRunner<COMP> as yew::scheduler::Runnable>::run::hea62fb57e589a6a0 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1062048
    h7766d6b4897941ac http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:873685
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::{{closure}}::h6abaeea04e55978e http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1443939
    h04c7ce8cf716dea0 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1601275
    hf6f971e526b47550 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1347094
    web_frontend-b9e99cd3c1058931.wasm.<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h0fd61c9a0d691833 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1760551
    __wbg_adapter_36 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:246
    real http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:211
    (Async: EventHandlerNonNull)
    __wbg_setonload_0af77109dbfaa065 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc.js:745
    h7dcc2a45c7303ce1 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1521995
    web_frontend-b9e99cd3c1058931.wasm.<web_frontend::general::GeneralSettings as yew::html::component::Component>::update::hf23d0207c64ee470 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:140493
    web_frontend-b9e99cd3c1058931.wasm.<yew::html::component::lifecycle::UpdateRunner<COMP> as yew::scheduler::Runnable>::run::hea62fb57e589a6a0 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1062048
    h7766d6b4897941ac http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:873685
    h79e89b438b48931a http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1706350
    he4e6ec12187ae226 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1578961
    web_frontend-b9e99cd3c1058931.wasm.<yew::html::listener::events::onclick::Wrapper as yew::virtual_dom::listeners::Listener>::handle::h70c3f1676af8128b http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1662306
    ha6877fefbd12bb20 http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1085905
    h4c6a27fc27930f5d http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1651167
    h53ce6dd52b3dc4af http://192.168.12.10:8200/web_frontend-f4d537620b91a4bc_bg.wasm:1763717

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions