[SOLVED] Letsencrypt new certificate dropdown list Validation Method empty

Started by mvdheuvel, May 04, 2018, 09:29:39 AM

Previous topic - Next topic
I upgraded to version 18.1.7 and I tried to create a new certificate with the letsencrypt plugin.
The 'Validation Method' dropdown menu is empty, while I have configured an Validation Method.

Is this a GUI glitch, because with the previous versions I had no problem with this.


Just for info, did a fresh installation yesterday with the current version and there it worked flawless.



for me exactly the same. Did a fresh install with 18.1 and upgraded directly to 18.1.7. Reinstalling the package was without sucess

I also can confirm the issue: I did a fresh 18.1.6 install yesterday and upgraded to 18.1.7, after that installed the Let's Encrypt plugin and couldn't select a Validation Method.

If you are familiar with a browsers developer tools, you can workaround it like this until there is a fix available:

  • Open the Validation Method list
  • Inspect the edit button of the validation method entry with the dev tools. The button tag has an attribute data-row-id, 36 alphanumeric characters with dashes. That's the ID, copy it.
  • Create a new certificate, in the form inspect the Validation Method dropdown with the dev tools. The dropdown text or button will be selected in the inspector, but somewhere next to it there is the <select id="certificate.validationMethod" ...> tag.
  • Edit the <select> tag, and insert an option tag like this: <option value="PASTE_YOUR_ID_HERE" selected="selected"></option>. The value attribute of the option tag needs to be the 36 character ID you copied just before from the validation methods list. and be sure to include the selected="selected" attribute in the <option> tag, else it won't be sent with the form as nothing would be selected.
  • Complete the rest of the form and save it.

Worked for me. As there is no "Validation Method" column, and the options are also not displayed in the edit form, you can't verify in the GUI if it was really set. But my certificate was issued. You could also download a OPNSense configuration backup, as it's just an XML you can open it in a text editor and search for <validationMethod>, there you see the 36 character long ID.

You can move the package back to 18.1.6 for now:

# opnsense-revert -r 18.1.6 opnsense

It's likely something related to https://github.com/opnsense/core/commit/e4d5daf9 but at the moment that does not unpatch cleanly so I cannot confirm.


Cheers,
Franco

Thank you Franco for the fast response.

With 18.1.6 everything is working fine again.

Cheers,
Menno


Not yet done. :)

Here's a fix for 18.1.7: https://github.com/opnsense/core/commit/8b5949e

To install via...

# opnsense-patch 8b5949e

If we can get a few OKs we'll hotfix within an hour after confirmation.


Thanks,
Franco

Hi Franco,

I upgraded again to 18.1.7 and the problem came back.
After applying patch 8b5949e everything is working fine for me.

Thanks,

Menno




Thanks for the quick reports, all better now with 18.1.7_1.


Cheers,
Franco