Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

She won' go Warp 7, Cap'n! The batteries are dead!


devel / comp.infosystems.gemini / Molly Brown and Yggdrasil

SubjectAuthor
* Molly Brown and Yggdrasilrtr
+- Re: Molly Brown and Yggdrasilmeff
+* Re: Molly Brown and Yggdrasilmeff
|`* Re: Molly Brown and Yggdrasilrtr
| `- Re: Molly Brown and Yggdrasilmeff
`* Re: Molly Brown and YggdrasilMartin
 `* Re: Molly Brown and Yggdrasilrtr
  `* Re: Molly Brown and YggdrasilMartin
   +* Re: Molly Brown and Yggdrasilmeff
   |`- Re: Molly Brown and YggdrasilMartin
   `- Re: Molly Brown and Yggdrasilrtr

1
Molly Brown and Yggdrasil

<871r0e24uo.fsf@haraya.local.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=145&group=comp.infosystems.gemini#145

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rtr@haraya.invalid (rtr)
Newsgroups: comp.infosystems.gemini
Subject: Molly Brown and Yggdrasil
Date: Mon, 07 Feb 2022 21:17:35 +0800
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <871r0e24uo.fsf@haraya.local.net>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="f48fc97fc6a69e7ac415508674616dea";
logging-data="9011"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zTOB2nI+s7DEa3mPJj/AW"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix)
Cancel-Lock: sha1:KjIANQk+NCgMNeZiLaH303gdrGE=
sha1:Kh5lTfxJE5kVBs75415ZOBYrEG4=
 by: rtr - Mon, 7 Feb 2022 13:17 UTC

Hello everyone,

I know this is a bit of a stretch but I wanted to know if there's
anyone who tried running Molly Brown under Yggdrasil [1]. I don't
know if I'm just being stupid or if Molly Brown doesn't properly
recognize IPv6 addressing.

I was mostly trying it out to see whether I would be able to make
it work but at this point I'm just dumbfounded. I was really hoping
it would work since I really liked that server's feature of
autogenerating personal gemini capsules.

Either way, I'm also curious whether anyone tried hosting a capsule
under Yggdrasil.

Cheers everyone!

[1] https://yggdrasil-network.github.io/

--
Ang kalayaan ay dili gihatag, ini'y giabot.
--
{gemini,gopher}://kalayaan.xyz

Re: Molly Brown and Yggdrasil

<stserf$o2f$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=146&group=comp.infosystems.gemini#146

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: email@example.com (meff)
Newsgroups: comp.infosystems.gemini
Subject: Re: Molly Brown and Yggdrasil
Date: Tue, 8 Feb 2022 00:51:59 -0000 (UTC)
Organization: That of fools
Lines: 13
Message-ID: <stserf$o2f$1@dont-email.me>
References: <871r0e24uo.fsf@haraya.local.net>
Injection-Date: Tue, 8 Feb 2022 00:51:59 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a2e8e406ba89cc2d7ce4cf8660d9b3f5";
logging-data="24655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+R7IGqAN/Oyvcw7cYhZynI"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:pyIs2YXJdNi00ZO4R9YL7DzLB7g=
 by: meff - Tue, 8 Feb 2022 00:51 UTC

On 2022-02-07, rtr <rtr@haraya.invalid> wrote:
> I know this is a bit of a stretch but I wanted to know if there's
> anyone who tried running Molly Brown under Yggdrasil [1]. I don't
> know if I'm just being stupid or if Molly Brown doesn't properly
> recognize IPv6 addressing.

Molly Brown is just using a call to the Go standard library to listen
on a host and a port. Molly Brown doesn't specify an IP to listen on,
so in theory it should be listening on every [anycast or
unicast](https://pkg.go.dev/net#Listen) address, so I wonder if
Yggdrasil is marking the address as neither. Regardless it should be
trivial to extend the code to listen on a given IP and port. If you'd
be interested, I could put a patch together for that.

Re: Molly Brown and Yggdrasil

<stsf7b$o2f$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=147&group=comp.infosystems.gemini#147

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: email@example.com (meff)
Newsgroups: comp.infosystems.gemini
Subject: Re: Molly Brown and Yggdrasil
Date: Tue, 8 Feb 2022 00:58:20 -0000 (UTC)
Organization: That of fools
Lines: 11
Message-ID: <stsf7b$o2f$2@dont-email.me>
References: <871r0e24uo.fsf@haraya.local.net>
Injection-Date: Tue, 8 Feb 2022 00:58:20 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a2e8e406ba89cc2d7ce4cf8660d9b3f5";
logging-data="24655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cKkyi7Tke54wfPkJrlK70"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Cm46SnItis7s1O/BMAn7gSffXC8=
 by: meff - Tue, 8 Feb 2022 00:58 UTC

Apologies for the double follow-up.

On 2022-02-07, rtr <rtr@haraya.invalid> wrote:
> Either way, I'm also curious whether anyone tried hosting a capsule
> under Yggdrasil.

There's also the matter that you're not getting much out of the TLS on
Gemini since Yggdrasil is encrypting traffic onto the overlay
anyway. That shouldn't stop you from generating a certificate for the
Yggdrasil IP as long as you're holding onto a stable IPv6 address and
not grabbing random addresses from your /64.

Re: Molly Brown and Yggdrasil

<stt3is$1liu$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=148&group=comp.infosystems.gemini#148

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!aioe.org!ErSovAq9FaKvZ1TQGNB+fw.user.46.165.242.75.POSTED!not-for-mail
From: martin@datapulp.de (Martin)
Newsgroups: comp.infosystems.gemini
Subject: Re: Molly Brown and Yggdrasil
Date: Tue, 8 Feb 2022 07:45:43 +0100
Organization: Aioe.org NNTP Server
Message-ID: <stt3is$1liu$1@gioia.aioe.org>
References: <871r0e24uo.fsf@haraya.local.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="54878"; posting-host="ErSovAq9FaKvZ1TQGNB+fw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Martin - Tue, 8 Feb 2022 06:45 UTC

Am 07.02.22 um 14:17 schrieb rtr:
> Either way, I'm also curious whether anyone tried hosting a capsule
> under Yggdrasil.

Nice idea. Just tell me/us, if your done with your setup. I will try to
reach your capsule and will try it out on my own vps too with gmid
server from Omar Polo.

Martin

Re: Molly Brown and Yggdrasil

<87wni4nc7p.fsf@haraya.local.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=158&group=comp.infosystems.gemini#158

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rtr@haraya.invalid (rtr)
Newsgroups: comp.infosystems.gemini
Subject: Re: Molly Brown and Yggdrasil
Date: Wed, 09 Feb 2022 07:57:30 +0800
Organization: A noiseless patient Spider
Lines: 69
Message-ID: <87wni4nc7p.fsf@haraya.local.net>
References: <871r0e24uo.fsf@haraya.local.net> <stsf7b$o2f$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="de80fa071345184030783bb07c587327";
logging-data="12282"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OguodmsvBw++tHvbpPk3v"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix)
Cancel-Lock: sha1:3zYOxH1r5/dpwpswur6o0yzigoU=
sha1:uxSnUsaOQxphDSudZR9HjeVHI2Q=
 by: rtr - Tue, 8 Feb 2022 23:57 UTC

meff <email@example.com> writes:

> Apologies for the double follow-up.
>
> On 2022-02-07, rtr <rtr@haraya.invalid> wrote:
>> Either way, I'm also curious whether anyone tried hosting a capsule
>> under Yggdrasil.
>
> There's also the matter that you're not getting much out of the TLS on
> Gemini since Yggdrasil is encrypting traffic onto the overlay
> anyway. That shouldn't stop you from generating a certificate for the
> Yggdrasil IP as long as you're holding onto a stable IPv6 address and
> not grabbing random addresses from your /64.

Hi meff, thanks for the response. I was able to make it work. My
problem was a bunch of things not going right, partly because I
don't know how to deal with IPv6 addresses and partly because I
don't know what I'm doing in general. Anyway, I will post here
what I did to make it work just in case someone else found
themselves in the position that I was.

Yes, you're right. Molly Brown doesn't really discriminate if
you're accessing an IPv6 or IPv4 address.

However, the first problem that I had was that the HOSTNAME
variable and the certificate that you are generating must
match. While that seems obvious enough, I wasn't sure whether I
ought to include the square brackets used in IPv6 addresses. I
first generated a certificate that has an address with square
brackets as its certificate name and then set-up my HOSTNAME
variable the same way.

Molly Brown doesn't like that. The hostname variable should only be
an address without any brackets when used with IPv6. I changed it
back but then I kept getting certificate mismatch errors. So I
generated a new certificate with the one without brackets.

I thought I already solved the problem but now I kept getting
"40 -- Temporary Error". I was trying to figure out the issue and
when I ran molly as root the server popped up. So I know, by then,
that the issue was either with the rc.d script or permissions that
I've set for the folders.

(I'm running Molly Brown in FreeBSD)

After some fruitless documentation diving, I figured I should mess
with the file permissions in DOCDIR and my configuration
directory. I've set both of those folders to be owned by
daemon:daemon and played around with the file permissions. What
worked were the following:

# chmod -R 555 /your/gemini/config/path
# chmod -R 755 /your/doc/dir/path

So in gist. If you want to run Molly Brown under Yggdrasil, you'll
need to set your HOSTNAME variable and certificate variable to your
Yggdrasil address without square brackets and make sure that your
config folder and DOCDIR folder is owned by daemon with the
permissions set to 555 and 755 respectively.

If anyone's interested here's Yggdrasil Capsule:
gemini://[209:dead:1cc2:970:637b:450f:6575:9a24]/~/rtr/

Cheers everyone!

--
Ang kalayaan ay dili gihatag, ini'y giabot.
--
{gemini,gopher}://kalayaan.xyz

Re: Molly Brown and Yggdrasil

<87sfssnc2r.fsf@haraya.local.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=159&group=comp.infosystems.gemini#159

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rtr@haraya.invalid (rtr)
Newsgroups: comp.infosystems.gemini
Subject: Re: Molly Brown and Yggdrasil
Date: Wed, 09 Feb 2022 08:00:28 +0800
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <87sfssnc2r.fsf@haraya.local.net>
References: <871r0e24uo.fsf@haraya.local.net> <stt3is$1liu$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="de80fa071345184030783bb07c587327";
logging-data="12282"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/df6OzDd401fF5vXZ0oWZd"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix)
Cancel-Lock: sha1:TqlQ6G0p+gG8ljSU28Qnhxh9stM=
sha1:liQSPBqdchzTlmVOsPYPjPT1yUg=
 by: rtr - Wed, 9 Feb 2022 00:00 UTC

Martin <martin@datapulp.de> writes:

> Am 07.02.22 um 14:17 schrieb rtr:
>> Either way, I'm also curious whether anyone tried hosting a capsule
>> under Yggdrasil.
>
> Nice idea. Just tell me/us, if your done with your setup. I will try
> to reach your capsule and will try it out on my own vps too with gmid
> server from Omar Polo.
>
> Martin
>

Hi Martin, I was able to make the capsule work. I was having a
problem with a conflict with the HOSTNAME variable and the
certificate name that I was generating. Basically, you need to
provide the Yggdrasil address without any square brackets.

Also, if you're running under FreeBSD make sure that the DOCDIR and
config directory is owned by daemon with the file permissions set
to 555 and 755 respectively.

Here's my Yggdrasil Capsule if you want to try reaching it:
gemini://[209:dead:1cc2:970:637b:450f:6575:9a24]/~/rtr/

--
Ang kalayaan ay dili gihatag, ini'y giabot.
--
{gemini,gopher}://kalayaan.xyz

Re: Molly Brown and Yggdrasil

<stvsdv$4o8$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=160&group=comp.infosystems.gemini#160

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: email@example.com (meff)
Newsgroups: comp.infosystems.gemini
Subject: Re: Molly Brown and Yggdrasil
Date: Wed, 9 Feb 2022 08:02:07 -0000 (UTC)
Organization: That of fools
Lines: 17
Message-ID: <stvsdv$4o8$1@dont-email.me>
References: <871r0e24uo.fsf@haraya.local.net> <stsf7b$o2f$2@dont-email.me>
<87wni4nc7p.fsf@haraya.local.net>
Injection-Date: Wed, 9 Feb 2022 08:02:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2fc84070eb410b8f8a427856d17c4604";
logging-data="4872"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oCGQ2SVWhRMtmNdGAiE7+"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:DxKC6+S/h9wQbPezW5HMyu2ObS8=
 by: meff - Wed, 9 Feb 2022 08:02 UTC

On 2022-02-08, rtr <rtr@haraya.invalid> wrote:
> However, the first problem that I had was that the HOSTNAME
> variable and the certificate that you are generating must
> match. While that seems obvious enough, I wasn't sure whether I
> ought to include the square brackets used in IPv6 addresses. I
> first generated a certificate that has an address with square
> brackets as its certificate name and then set-up my HOSTNAME
> variable the same way.
>
> Molly Brown doesn't like that. The hostname variable should only be
> an address without any brackets when used with IPv6. I changed it
> back but then I kept getting certificate mismatch errors. So I
> generated a new certificate with the one without brackets.
>

Oh I've never made a certificate with a bare IP address, let alone an
IPv6 address so this is new info for me at least, thanks!

Re: Molly Brown and Yggdrasil

<su186c$1ld7$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=161&group=comp.infosystems.gemini#161

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!aioe.org!3gwnyGy3gv/Zf4/Stp69/w.user.46.165.242.75.POSTED!not-for-mail
From: martin@datapulp.de (Martin)
Newsgroups: comp.infosystems.gemini
Subject: Re: Molly Brown and Yggdrasil
Date: Wed, 9 Feb 2022 21:28:56 +0100
Organization: Aioe.org NNTP Server
Message-ID: <su186c$1ld7$1@gioia.aioe.org>
References: <871r0e24uo.fsf@haraya.local.net> <stt3is$1liu$1@gioia.aioe.org>
<87sfssnc2r.fsf@haraya.local.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="54695"; posting-host="3gwnyGy3gv/Zf4/Stp69/w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Martin - Wed, 9 Feb 2022 20:28 UTC

Am 09.02.22 um 01:00 schrieb rtr:
> Hi Martin, I was able to make the capsule work.
Hi rtr,

I'm not that successful up to now:

I can ping your host via yggdrasil.
I can ping my vps via yggdrasil.

... but I can't call your capsule or my capsule, same error:

Loading gemini://[209:dead:1cc2:970:637b:450f:6575:9a24]/~/rtr/...

╔═════════════════════ URL Fetch Error ═════════════════════╗

║ ║

║ Failed to connect to the server: hostname does not ║

║ verify: x509: certificate relies on legacy Common Name ║

║ field, use SANs instead. ║

║ ║

║ Ok ║

║ ║

╚═══════════════════════════════════════════════════════════╝


I'm using amfora. I made my certificate this way, would the CN be ok in
your eyes? How did you do it? Which browser do you use?

openssl req -x509 -newkey rsa:4096 -days 36500 -nodes \
-keyout yggdrasil.key -out yggdrasil.crt -subj \
"/CN=201:112e:4d49:1af1:9190:6da8:bf38:aa9d"

But: THIS IS THE WRONG WAY

I successfully created a self signed certificate for localhost, but I
never managed to call the gemini server just by it's ip, always I need
to call it localhost.

I googled a lot but up to now I did not find a way to work just with ip.

Ciao
Martin

Re: Molly Brown and Yggdrasil

<su1aut$k76$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=162&group=comp.infosystems.gemini#162

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: email@example.com (meff)
Newsgroups: comp.infosystems.gemini
Subject: Re: Molly Brown and Yggdrasil
Date: Wed, 9 Feb 2022 21:16:14 -0000 (UTC)
Organization: That of fools
Lines: 30
Message-ID: <su1aut$k76$1@dont-email.me>
References: <871r0e24uo.fsf@haraya.local.net> <stt3is$1liu$1@gioia.aioe.org>
<87sfssnc2r.fsf@haraya.local.net> <su186c$1ld7$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Feb 2022 21:16:14 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2fc84070eb410b8f8a427856d17c4604";
logging-data="20710"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Kv6P8L1jO+jNqkXOjBx7r"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:jC2YDH32DMcRom68lsUlD2QatYs=
 by: meff - Wed, 9 Feb 2022 21:16 UTC

On 2022-02-09, Martin <martin@datapulp.de> wrote:
> Loading gemini://[209:dead:1cc2:970:637b:450f:6575:9a24]/~/rtr/...
>
> ╔═════════════════════ URL Fetch Error ═════════════════════╗
> ║ ║
> ║ Failed to connect to the server: hostname does not ║
> ║ verify: x509: certificate relies on legacy Common Name ║
> ║ field, use SANs instead. ║
> ║ ║
> ║ Ok ║
> ║ ║
> ╚═══════════════════════════════════════════════════════════╝

This means that the cert should use a SAN and not a CN, but may be
indicative of a different error underneath.

> I'm using amfora. I made my certificate this way, would the CN be ok in
> your eyes? How did you do it? Which browser do you use?
>
> openssl req -x509 -newkey rsa:4096 -days 36500 -nodes \
> -keyout yggdrasil.key -out yggdrasil.crt -subj \
> "/CN=201:112e:4d49:1af1:9190:6da8:bf38:aa9d"
>
>
> But: THIS IS THE WRONG WAY

Interesting, did you try this method to create the cert and it didn't
work?

- meff

Re: Molly Brown and Yggdrasil

<su2a0s$q53$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=163&group=comp.infosystems.gemini#163

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!aioe.org!2aogTsaX2Sn6H+ETTOwgtg.user.46.165.242.75.POSTED!not-for-mail
From: martin@datapulp.de (Martin)
Newsgroups: comp.infosystems.gemini
Subject: Re: Molly Brown and Yggdrasil
Date: Thu, 10 Feb 2022 07:06:16 +0100
Organization: Aioe.org NNTP Server
Message-ID: <su2a0s$q53$1@gioia.aioe.org>
References: <871r0e24uo.fsf@haraya.local.net> <stt3is$1liu$1@gioia.aioe.org>
<87sfssnc2r.fsf@haraya.local.net> <su186c$1ld7$1@gioia.aioe.org>
<su1aut$k76$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="26787"; posting-host="2aogTsaX2Sn6H+ETTOwgtg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Martin - Thu, 10 Feb 2022 06:06 UTC

Am 09.02.22 um 22:16 schrieb meff:
> This means that the cert should use a SAN and not a CN, but may be
> indicative of a different error underneath.

Yes, with my own capsule I also tried SAN, this is the openssl.cnf:

[req]
default_bits = 2048
distinguished_name = req_distinguished_name
req_extensions = req_ext
x509_extensions = v3_req
prompt = no

[req_distinguished_name]
countryName = XX
stateOrProvinceName = N/A
localityName = N/A
organizationName = Self-signed certificate
commonName = localhost

[req_ext]
subjectAltName = @alt_names

[v3_req]
subjectAltName = @alt_names

[alt_names]
IP.1 = 127.0.0.1
DNS.1 = localhost

Although the ip address appears in the certificate as whished, I still
am just able to connect to the capsule via the name "localhost"

THe openssl command for the above config:

openssl req -x509 -nodes -days 36500 -newkey rsa:4096 -keyout
yggdrasil.key -out yggdrasil.crt -config openssl.cnf

> Interesting, did you try this method to create the cert and it didn't
> work?

I tried the above and according to different explainations it should
also work with the raw ip adress calling.

Well, in the end I thought: maybe gmid does not support raw ip
addresses. I do think so.

Did anybody other manage to get a raw ip address access to a capsule?

Martin

Re: Molly Brown and Yggdrasil

<87fsor13u9.fsf@haraya.local.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=164&group=comp.infosystems.gemini#164

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rtr@haraya.invalid (rtr)
Newsgroups: comp.infosystems.gemini
Subject: Re: Molly Brown and Yggdrasil
Date: Thu, 10 Feb 2022 17:13:50 +0800
Organization: A noiseless patient Spider
Lines: 76
Message-ID: <87fsor13u9.fsf@haraya.local.net>
References: <871r0e24uo.fsf@haraya.local.net> <stt3is$1liu$1@gioia.aioe.org>
<87sfssnc2r.fsf@haraya.local.net> <su186c$1ld7$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="14ee7d8f0fe6864ae4b43a26dc0c0123";
logging-data="30995"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CFmR1U/8CpLMeJrMnDbFK"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix)
Cancel-Lock: sha1:GlrX6QY6ysqZIILefv+eHcvGrfw=
sha1:hWZn3/h9kgFh43YOIjugDSNAZXs=
 by: rtr - Thu, 10 Feb 2022 09:13 UTC

Martin <martin@datapulp.de> writes:

> Am 09.02.22 um 01:00 schrieb rtr:
>> Hi Martin, I was able to make the capsule work.
> Hi rtr,
>
> I'm not that successful up to now:
>
> I can ping your host via yggdrasil.
> I can ping my vps via yggdrasil.
>
> .. but I can't call your capsule or my capsule, same error:
>
>
> Loading gemini://[209:dead:1cc2:970:637b:450f:6575:9a24]/~/rtr/...
> ╔═════════════════════ URL Fetch Error ═════════════════════╗
> ║ ║
> ║ Failed to connect to the server: hostname does not ║
> ║ verify: x509: certificate relies on legacy Common Name ║
> ║ field, use SANs instead. ║
> ║ ║
> ║ Ok ║
> ║ ║
> ╚═══════════════════════════════════════════════════════════╝
>
>
>
> I'm using amfora. I made my certificate this way, would the CN be ok
> in your eyes? How did you do it? Which browser do you use?
>
> openssl req -x509 -newkey rsa:4096 -days 36500 -nodes \
> -keyout yggdrasil.key -out yggdrasil.crt -subj \
> "/CN=201:112e:4d49:1af1:9190:6da8:bf38:aa9d"
>
> But: THIS IS THE WRONG WAY
>
> I successfully created a self signed certificate for localhost, but I
> never managed to call the gemini server just by it's ip, always I need
> to call it localhost.
>
> I googled a lot but up to now I did not find a way to work just with ip.
>

Hi Martin,

That's odd. I was able to access my capsule in Yggdrasil through Elpher
and Lagrange. I've just tried Amfora and I can confirm that that error
does show up on my end too.

I've used roughly the same command as you did above. I've set the CN
variable to the IP address of my Yggdrasil machine. If that's the wrong
way then I have no idea at the moment to properly do it. I've just
looked into SAN but I'll probably need to look at it when I have more
time in my hands.

Also, I don't think setting the HOSTNAME variable to localhost will work
since Molly Brown assumes that the variable to be connectable
from the outside. If that would be an issue, probably something like
gnmisrv might be more apt since it (seems) to not look for a hostname
variable [1].

One solution that I'm thinking right now is to just get a DNS record for
your Yggdrasil capsule. I believe you can use Alfis to do this
[2]. I haven't messed around with DNS for Yggdrasil yet though so I
don't have any informed opinion about that.

Cheers!

[1] https://sr.ht/~sircmpwn/gmnisrv/

[2] https://github.com/Revertron/Alfis

--
Ang kalayaan ay dili gihatag, ini'y giabot.
--
{gemini,gopher}://kalayaan.xyz

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor