Skip to content
This repository was archived by the owner on Sep 27, 2026. It is now read-only.
This repository was archived by the owner on Sep 27, 2026. It is now read-only.

Sometimes https is not working for new site #18

Open

Description

@dkeza

I have issue, that after some time, Armor won't issue TLS certificate for newly entered site in config.json.
Only way to get around this issue is to completely delete cache_tls file, and to start again.

Another problem is, that I don't see that error in my Armor log file.
I am on Windows, and I am calling Armor from BAT file like so:
armor -c config.json >> armor.log
And this is working perfectly, but TLS error messages were not written into file. I see those messages only when I run armor.exe in terminal window:

 ⇛ https server started on
2016/11/17 11:27:42 http: TLS handshake error from 72.66.115.14:52280: unknown host
2016/11/17 11:27:45 http: TLS handshake error from 72.66.115.14:58976: unknown host
2016/11/17 11:27:45 http: TLS handshake error from 72.66.115.14:58977: unknown host)

But in my armor.log I don't see those messages, only JSON log lines are showed:
{"time":"2016-11-17T11:29:42+01:00","remote_ip":"192.168.1.3","host":"","method":"GET","uri":"timeline","status":200, "latency":2131000,"latency_human":"2.131s","bytes_in":0,"bytes_out":86578}
{"time":"2016-11-17T11:29:42+01:00","remote_ip":"192.168.1.3","host":"
","method":"GET","uri":"chrome.ico","status":200, "latency":55000,"latency_human":"55ms","bytes_in":0,"bytes_out":3638}

Activity

  1. vishr commented on Nov 17, 2016

    @vishr
    Member

    For logs, you also need to redirect stderr see http://stackoverflow.com/questions/503846/how-do-i-echo-and-send-console-output-to-a-file-in-a-bat-script

    How often are you adding new domains?

  2. dkeza commented on Nov 18, 2016

    @dkeza
    Author

    Thank You for this this tip for redirecting stderr! It works now.

    I am actually experimenting with Armor, and now I have 8 domains. When I added 9 domain, only for this newly added domain I am receiving this error.
    First time when this issue occurred, I had 4 domains, and when I tried to add 5. then it didn't work, until i deleted cache_tls and then it worked for first 8 domains. When I later (tomorrow) tried to add 9. domain, it didn't work.
    I have dyndns account, and I create there new domains for testing.

    I want to move some static sites from web hosting to my local PC, with Armor as reverse proxy and for auto TLS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions