Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST gateway CA can't be selected through URL #302

Closed
dakeduke opened this issue Oct 27, 2023 · 0 comments
Closed

REST gateway CA can't be selected through URL #302

dakeduke opened this issue Oct 27, 2023 · 0 comments

Comments

@dakeduke
Copy link

When no caProfiles are set for REST it always failed with "unknown CA" because the command is used as CA
E.g: rest/myca/cacerts -> CA = cacerts , CMD = cacerts

It also always apply default profile when set (E.g: rest/donotexist/cacerts -> return default)

CaProfileConf caProfileConf = caProfilesControl.getCaProfile("default");
if (caProfileConf == null) {
caName = tokens[1];
certProfile = httpRetriever.getParameter(PARAM_profile);
} else {

A simple fix could be :

        CaProfileConf caProfileConf = caProfilesControl.getCaProfile(tokens[0]);
        if (caProfileConf == null) {
          caName = tokens[0];
          certProfile = httpRetriever.getParameter(PARAM_profile);
        } else {
@xipki xipki closed this as completed in 4c01bd5 Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant