Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jefersonsens

Pages: [1]
1
SSL / Re: Problem with auto SSL
« on: February 06, 2024, 01:34:36 PM »
My rnds is ok.
Follow the tests below
Using the website provided previously:

IP: 198.49.71.199

IP: 198.49.71.200


Using nslookup with google dns servers




Or is there some other way to check rDNS that I don't know about?

2
SSL / Re: Problem with auto SSL
« on: February 06, 2024, 01:17:05 PM »
I did what you said, but the problem continues.
When generating certificates for other domains on the same server, the certificate is generated without a problem.

Regarding rDNS/ptr it is shown as:
rDNS/PTR = FAILED, check with your hosting provider!

However my rnds is configured correctly
cwp02.ht.inf.br -> 198.49.71.200
cwp02.ht.inf.br -> 198.49.71.199

198.49.71.200 -> cwp02.ht.inf.br
198.49.71.199 -> cwp02.ht.inf.br

Carrying out the tests using nslookup, I already identify that both are ok.
To ensure I still used the website https://mail.terra.com.br/postmaster/ inserting my server addresses.
The certificate used when accessing the server cwp02.ht.inf.br:2087 is presented correctly, without any problems.

3
SSL / Re: Problem with auto SSL
« on: February 06, 2024, 11:31:57 AM »
Firstly, thank you very much!
And here is the answer to the questions:

The domain is casaautomacao.com.br

Yes, it is a machine with two public addresses linking directly to it.

I am generating the certificate directly in 'SSL Certificates -> AutoSSL [FREE]'
When generating it, it is generated without any problem, even displaying the completed message without errors.

Signed by Let's Encrypt


4
SSL / Re: Problem with auto SSL
« on: February 05, 2024, 06:23:27 PM »
Log off /usr/local/apache/domain.logs/domain.com.br.error.log

Code: [Select]
[ssl:warn] [pid 113854:tid 139925367125888] AH01909: domain.com.br:443:0 server certificate does NOT include an ID which matches the server name

5
SSL / Problem with auto SSL
« on: February 05, 2024, 06:12:31 PM »
Hello, I'm having problems when trying to generate a new certificate, in the panel it is generated normally, but even after restarting the http services it continues to be an invalid certificate when accessing the website.

in the log /root/.acme.sh/acme.sh.log the following is displayed:

Code: [Select]
[Mon Feb  5 15:07:08 -03 2024] Cert success.
[Mon Feb  5 15:07:08 -03 2024] Your cert is in: /root/.acme.sh/cwp_certs/www.domainname.com.br_ecc/www.domainname.com.br.cer
[Mon Feb  5 15:07:08 -03 2024] Your cert key is in: /root/.acme.sh/cwp_certs/www.domainname.com.br_ecc/www.domainname.com.br.key
[Mon Feb  5 15:07:08 -03 2024] The intermediate CA cert is in: /root/.acme.sh/cwp_certs/www.domainname.com.br_ecc/ca.cer
[Mon Feb  5 15:07:08 -03 2024] And the full chain certs is there: /root/.acme.sh/cwp_certs/www.domainname.com.br_ecc/fullchain.cer
[Mon Feb  5 15:07:09 -03 2024] Installing cert to: /etc/pki/tls/certs/domainname.com.br.cert
[Mon Feb  5 15:07:09 -03 2024] Installing key to: /etc/pki/tls/private/domainname.com.br.key
[Mon Feb  5 15:07:09 -03 2024] Installing full chain to: /etc/pki/tls/certs/domainname.com.br.bundle
[Mon Feb  5 15:07:09 -03 2024] _on_issue_success
[Mon Feb  5 15:07:09 -03 2024] '' does not contain 'dns'

6
CWP API / Re: Error API 404
« on: January 08, 2024, 05:48:17 PM »
Thanks for your help in solving this problem!

You're using GET variables with a POST command.  The PHP example clearly shows how to do this.
Code: [Select]
Example in PHP:

$data = array("key" => "MYKEY","action"=>'list');
$url = "https://IPSERVERAPI:2304/v1/account";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt ($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
curl_close($ch);

For the command line
curl -k -X POST -d "key=my_key&action=list" "https://my_server_ip:2304/v1/account"

7
CWP API / Error API 404
« on: January 05, 2024, 07:34:33 PM »
When I make a post using curl the API returns a 404 error page to me.

I'm trying to list all cwp accounts but only the error is returned, checking the logs in /usr/local/cwpsrv/logs/2304_error_log it shows me the following

Quote
2024/01/05 16:31:01 [notice] 79020#0: *7119 "^/v1/([^/]+)/?$" matches "/v1/account", client: my_ip, server: localhost, request: "POST /v1/account?key=my_key&action=list HTTP/1.1", host: "my_server_ip:2304"
2024/01/05 16:31:01 [notice] 79020#0: *7119 rewritten data: "/v1/index.php", args: "method=", client: my_ip, server: localhost, request: "POST /v1/account?key=my_key&action=list HTTP/1.1", host: "my_server_ip:2304"
2024/01/05 16:31:01 [info] 79020#0: *7119 client my_ip closed keepalive connection

Can anyone shed some light on what this problem could be?
I am using the following command to get the information

Quote
curl -k -X POST "https://my_server_ip:2304/v1/account?key=my_key&action=list"

8
MySQL / Re: problem with database creation
« on: October 27, 2023, 11:18:55 AM »
Solved✅
Thanks for the reply!


This may happen when the account comes from a cpanel or cwp migration.

To solve it, run the following command cat /usr/local/cwp/.conf/mysql_user_prefix.conf and only leave in that file the users whose name has more than 8 characters, the rest must be eliminated

This will solve the problem

9
MySQL / problem with database creation
« on: October 26, 2023, 05:17:17 PM »
Hello everybody,
I'm having a problem with creating mysql databases.
When trying to create banks using the panel, the banks are created without the username preceding them, just being
_database
when it should be
user_database

This causes the database to not be displayed on the panel to the user.
The same happens when trying to create users.

Pages: [1]