Codeberg/Community
62
387
Fork
You've already forked Community
12

"Unable to establish SSL connection" to custom domain codeberg site #2826

Open
opened 2026年06月30日 13:52:06 +02:00 by vigilantesculpting · 7 comments

Comment

I have a pre-generated site at https://vigilantesculpting.codeberg.page/

This was previously hosted on github, and I decided to join you fine people here at codeberg.

I have a custom domain registered with namecheap: www.vigilantesculpting.com.
I tried to use the guide at
https://docs.codeberg.org/codeberg-pages/using-custom-domain/
to point the namecheap domain to the codeberg pages site.

To do this, I modified the CNAME entry on namecheap to read "pages.vigilantesculpting.codeberg.page."

After doing this, I get the following from dig:

$ dig CNAME www.vigilantesculpting.com
...
;; ANSWER SECTION:
www.vigilantesculpting.com. 30 IN CNAME pages.vigilantesculpting.codeberg.page.
...

so this seems ok?

But if I try to access my custom domain via webbrowser it gives me a security issue.
And using wget gives me

$ wget https://www.vigilantesculpting.com
--2026年06月30日 21:40:59-- https://www.vigilantesculpting.com/
Resolving www.vigilantesculpting.com (www.vigilantesculpting.com)... 217.197.84.141
Connecting to www.vigilantesculpting.com (www.vigilantesculpting.com)|217.197.84.141|:443... connected.
OpenSSL: error:0A000438:SSL routines::tlsv1 alert internal error
Unable to establish SSL connection.

I don't do this kind of thing very often, and I am not sure of what to try next.
I have seen mentions of a .domain file that some people seem to store in their repo?
Also, I used to have a CNAME file hosted on github. Do I need this?

Any help would be greatly appreciated, thank you!

### Comment I have a pre-generated site at https://vigilantesculpting.codeberg.page/ This was previously hosted on github, and I decided to join you fine people here at codeberg. I have a custom domain registered with namecheap: www.vigilantesculpting.com. I tried to use the guide at https://docs.codeberg.org/codeberg-pages/using-custom-domain/ to point the namecheap domain to the codeberg pages site. To do this, I modified the CNAME entry on namecheap to read "pages.vigilantesculpting.codeberg.page." After doing this, I get the following from dig: ``` $ dig CNAME www.vigilantesculpting.com ... ;; ANSWER SECTION: www.vigilantesculpting.com. 30 IN CNAME pages.vigilantesculpting.codeberg.page. ... ``` so this seems ok? But if I try to access my custom domain via webbrowser it gives me a security issue. And using wget gives me ``` $ wget https://www.vigilantesculpting.com --2026年06月30日 21:40:59-- https://www.vigilantesculpting.com/ Resolving www.vigilantesculpting.com (www.vigilantesculpting.com)... 217.197.84.141 Connecting to www.vigilantesculpting.com (www.vigilantesculpting.com)|217.197.84.141|:443... connected. OpenSSL: error:0A000438:SSL routines::tlsv1 alert internal error Unable to establish SSL connection. ``` I don't do this kind of thing very often, and I am not sure of what to try next. I have seen mentions of a .domain file that some people seem to store in their repo? Also, I used to have a CNAME file hosted on github. Do I need this? Any help would be greatly appreciated, thank you!

I have also tried to modify the CNAME entry on namecheap to
vigilantesculpting.codeberg.page.
and after waiting for the record to propagate (and checking with dig) I still can't connect to the site.
wget reports the same tlsv1 alert internal error as before.

I have also tried to modify the CNAME entry on namecheap to `vigilantesculpting.codeberg.page.` and after waiting for the record to propagate (and checking with dig) I still can't connect to the site. wget reports the same tlsv1 alert internal error as before.

Update: Having left the site alone for a couple of hours, I now see this when visiting vigilantesculpting.com with Firefox:

Failed Dependency (Error 424)!
Sorry, but this page couldn't be served:
"target is no codeberg page"

If I visit vigilantesculpting.codeberg.page instead, the site loads without problems.

Update: Having left the site alone for a couple of hours, I now see this when visiting vigilantesculpting.com with Firefox: Failed Dependency (Error 424)! Sorry, but this page couldn't be served: "target is no codeberg page" If I visit vigilantesculpting.codeberg.page instead, the site loads without problems.

It might help if you have https://codeberg.org/vigilantesculpting/pages/src/branch/pages/.domains to only contain
www.vigilantesculpting.com, because vigilantesculpting.com is not pointing to codeberg pages.

It might help if you have https://codeberg.org/vigilantesculpting/pages/src/branch/pages/.domains to only contain `www.vigilantesculpting.com`, because `vigilantesculpting.com` is not pointing to codeberg pages.

Thank you @Gusted, I'll give it a go. I could not find any documentation for the .domains file here, bit found references to it on other blogs, so I was cargo culting this and basically just guessing.

Thank you @Gusted, I'll give it a go. I could not find any documentation for the .domains file here, bit found references to it on other blogs, so I was cargo culting this and basically just guessing.

I've removed the invalid entry from the .domains file. Now visiting www.vigilantesculpting.com tells be that I should migrate to git-pages, since new users are not allowed to use pages V2.

However, I have already followed the instructions on https://docs.codeberg.org/codeberg-pages/migrating-from-pages-v2/

At this point I'm not sure what I'm doing wrong.

I've removed the invalid entry from the .domains file. Now visiting www.vigilantesculpting.com tells be that I should migrate to git-pages, since new users are not allowed to use pages V2. However, I have already followed the instructions on https://docs.codeberg.org/codeberg-pages/migrating-from-pages-v2/ At this point I'm not sure what I'm doing wrong.

Here is a discrepancy I have found. Please keep in mind I have no experience setting these things up, so I am guessing most of the time:

$ dig www.vigilantesculpting.com
...
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;www.vigilantesculpting.com. IN A
;; ANSWER SECTION:
www.vigilantesculpting.com. 1075 IN CNAME vigilantesculpting.codeberg.page.
vigilantesculpting.codeberg.page. 2876 IN A 217.197.84.141
...

However:

$ dig vigilantesculpting.com
...
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;vigilantesculpting.com. IN A
;; ANSWER SECTION:
vigilantesculpting.com. 1523 IN A 185.199.108.153
vigilantesculpting.com. 1523 IN A 185.199.111.153
vigilantesculpting.com. 1523 IN A 185.199.109.153
vigilantesculpting.com. 1523 IN A 185.199.110.153
...

Is this my problem? My namecheap domain name registration uses one CNAME entry, which I have updated to "vigilantesculpting.codeberg.page."
According to dig, the apex domain vigilantesculpting.com still points to (what I believe are) github's servers.

Any help with this please?

Here is a discrepancy I have found. Please keep in mind I have no experience setting these things up, so I am guessing most of the time: ``` $ dig www.vigilantesculpting.com ... ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 65494 ;; QUESTION SECTION: ;www.vigilantesculpting.com. IN A ;; ANSWER SECTION: www.vigilantesculpting.com. 1075 IN CNAME vigilantesculpting.codeberg.page. vigilantesculpting.codeberg.page. 2876 IN A 217.197.84.141 ... ``` However: ``` $ dig vigilantesculpting.com ... ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 65494 ;; QUESTION SECTION: ;vigilantesculpting.com. IN A ;; ANSWER SECTION: vigilantesculpting.com. 1523 IN A 185.199.108.153 vigilantesculpting.com. 1523 IN A 185.199.111.153 vigilantesculpting.com. 1523 IN A 185.199.109.153 vigilantesculpting.com. 1523 IN A 185.199.110.153 ... ``` Is this my problem? My namecheap domain name registration uses one CNAME entry, which I have updated to "vigilantesculpting.codeberg.page." According to dig, the apex domain vigilantesculpting.com still points to (what I believe are) github's servers. Any help with this please?

In the meantime I have replaced the A record entries for vigilantesculpting.com with a single A record pointing to the 217.197.84.141 server address.

When visiting vigilantesculpting.com I still get the same "Bad Request (Error 400)!" page, which says
"forge client: new users/orgs are not allowed to use the old pages server. See https://codeberg.page on using git-pages"

I have not followed any documentation to use the old pages server. In fact I have only followed the git-pages documentation.
What is weird is that visiting vigilantesculpting.codeberg.page works!
So there is just something in my domain registration that is screwed up, I'm sure...

However, at this point, I am out of ideas. I would have loved to host my site on codeberg, because I think you guys have the right approach to privacy and llms.

In the meantime I have replaced the A record entries for vigilantesculpting.com with a single A record pointing to the 217.197.84.141 server address. When visiting vigilantesculpting.com I still get the same "Bad Request (Error 400)!" page, which says "forge client: new users/orgs are not allowed to use the old pages server. See https://codeberg.page on using git-pages" I have not followed any documentation to use the old pages server. In fact I have only followed the git-pages documentation. What is weird is that visiting vigilantesculpting.codeberg.page works! So there is just something in my domain registration that is screwed up, I'm sure... However, at this point, I am out of ideas. I would have loved to host my site on codeberg, because I think you guys have the right approach to privacy and llms.
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
accessibility
Reduces accessibility and is thus a "bug" for certain user groups on Codeberg.
bug
Something is not working the way it should. Does not concern outages.
bug
infrastructure
Errors evidently caused by infrastructure malfunctions or outages
Codeberg
This issue involves Codeberg's downstream modifications and settings and/or Codeberg's structures.
contributions welcome
Please join the discussion and consider contributing a PR!
docs
No bug, but an improvement to the docs or UI description will help
duplicate
This issue or pull request already exists
enhancement
New feature
infrastructure
Involves changes to the server setups, use `bug/infrastructure` for infrastructure-related user errors.
legal
An issue directly involving legal compliance
licence / ToS
involving questions about the ToS, especially licencing compliance
please chill
we are volunteers
Please consider editing your posts and remember that there is a human on the other side. We get that you are frustrated, but it's harder for us to help you this way.
public relations
Things related to Codeberg's external communication
question
More information is needed
question
user support
This issue contains a clearly stated problem. However, it is not clear whether we have to fix anything on Codeberg's end, but we're helping them fix it and/or find the cause.
s/Forgejo
Related to Forgejo. Please also check Forgejo's issue tracker.
s/Forgejo/migration
Migration related issues in Forgejo
s/Pages
Issues related to the Codeberg Pages feature
s/Weblate
Issue is related to the Weblate instance at https://translate.codeberg.org
s/Woodpecker
Woodpecker CI related issue
security
involves improvements to the sites security
service
Add a new service to the Codeberg ecosystem (instead of implementing into Forgejo)
upstream
An open issue or pull request to an upstream repository to fix this issue (partially or completely) exists (i.e. Forgejo, Weblate, etc.)
wontfix
Codeberg's current set of contributors are not planning to spend time on delegating this issue.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#2826
Reference in a new issue
Codeberg/Community
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?