• Greg Ross

    (@gregross)


    I’m using this plugin to define WKURI’s for creating Let’s Encrypt certificates using CertBot and have run in to an issue.

    Using CertBot’s http authentication, it generates a WKURI for each domain name you are signing the certificate for. So for example if you are signing example.com and http://www.example.com, which both point to the same server, CertBot expects two different responses from two different URI’s under the WKURI namespace:

    example.com/.well-known/acme-challenge/big-long-random-string-of-digits returns one authentication string

    http://www.example.com/.well-known/acme-challenge/second-big-long-random-string-of-digits returns a different authentication string

    However the plugin only allows for one content to be returned for the acme-challenge WKURI.

    The fix is easy, simply remove the check for slashes in the path parameter, aka comment out/delete lines 226-229 in the plugin:

    
        if (strstr($result, '/') !== FALSE) {
          add_settings_error($id, 'invalid_suffix', __('URI path must not contain "/"') . ' - ' . $result, 'error');
          return $valid;
        }
    
    • This topic was modified 9 years ago by Greg Ross.

The topic ‘path with slashes’ is closed to new replies.