Certificate problem in setting Up MIAB for first time

Hello, it is time for me to get my first install. The setup go ok and i get a runing MAIB, but the problem is with certificates.

I have no option to respond this question:

Do you agree to the agreement? Type Y or N and press :
You didn’t agree. Quitting.

and the setup is asuming that I didn’t agree.

maybe the problem is with my python version. I’m using Ubuntu 14.04

here is the setup output.

thank in advance!

Mail-in-a-Box Version: v0.26c

Updating system packages…
Installing system packages…
Initializing system random number generator…
Firewall is active and enabled on system startup
Installing nsd (DNS server)…
Installing Postfix (SMTP server)…
Installing Dovecot (IMAP server)…
Installing OpenDKIM/OpenDMARC…
Installing SpamAssassin…
Installing Nginx (web server)…
Installing Roundcube (webmail)…
Installing Nextcloud (contacts/calendar)…
Nextcloud is already latest version
Installing Z-Push (Exchange/ActiveSync server)…
Installing Mail-in-a-Box system management daemon…
Installing Munin (system monitoring)…

I’m going to provision a TLS certificate (formerly called a SSL certificate)
for you from Let’s Encrypt (letsencrypt.org).

TLS certificates are cryptographic keys that ensure communication between
you and this box are secure when getting and sending mail and visiting
websites hosted on this box. Let’s Encrypt is a free provider of TLS
certificates.

Please open this document in your web browser:

It is Let’s Encrypt’s terms of service agreement. If you agree, I can
provision that TLS certificate. If you don’t agree, you will have an
opportunity to install your own TLS certificate from the Mail-in-a-Box
control panel.

Do you agree to the agreement? Type Y or N and press :
You didn’t agree. Quitting.


Your Mail-in-a-Box is running.

Please log in to the control panel for further instructions at:

You will be alerted that the website has an invalid certificate. Check that
the certificate fingerprint matches:

F9:04:73…

Then you can confirm the security exception and continue.

When that question comes up you have to actually TYPE with your keyboard “y” or “n” then press enter.

Murguero,

thanks, I understand that, maybe you are thinking that I’m a superNewbie and certanly you have the reason je :slight_smile:

but the setup automatically press “n” or something is working bad.

I try to be more specific in my question

at some time the setup run
setup/start.sh
at line 132: management/ssl_certificates.py -q

Blockquote
print(“”"
I’m going to provision a TLS certificate (formerly called a SSL certificate)
for you from Let’s Encrypt (letsencrypt.org).
TLS certificates are cryptographic keys that ensure communication between
you and this box are secure when getting and sending mail and visiting
websites hosted on this box. Let’s Encrypt is a free provider of TLS
certificates.
Please open this document in your web browser:
%s
It is Let’s Encrypt’s terms of service agreement. If you agree, I can
provision that TLS certificate. If you don’t agree, you will have an
opportunity to install your own TLS certificate from the Mail-in-a-Box
control panel.
Do you agree to the agreement? Type Y or N and press : “”"
% request[“url”], end=‘’, flush=True)
if sys.stdin.readline().strip().upper() != “Y”:
print(“\nYou didn’t agree. Quitting.”)
sys.exit(1)

then this part of code is not workin for me because the quesion is automaticaly responded and sys.exit(1) is executed.
Maybe is my python version or something is wrong on my system.

who is you vps provider?

it’s my own vhost over vmware and I connect it with putty.

If the box is running (as it appears that it is) you can log in to the admin page and under system > TLS (SSL) Certificates you should be able to install the certificate.

This however, does not address the problem with the setup script … but will get the cert installed for you.

@alento thanks,

today I have some time to play with the scritp management/ssl_certificates.py

to let the script continue running and bypass my problem, wath i do was replace sys.exit(1) with print(“\nYou agree.”) on de folowing code

Blockquote
if sys.stdin.readline().strip().upper() != “Y”:
print(“\nYou didn’t agree. Quitting.”)
sys.exit(1)

now that my MIAB has ssl I’d try some code on python to work around the script.

see yuo later.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.