1900ACSv2 SSL Certificate

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
seb666
DD-WRT Novice


Joined: 01 Mar 2017
Posts: 33

PostPosted: Sat Jul 25, 2020 13:10    Post subject: Reply with quote
Hi,
I'm currently running r43800 (07/14/2020) on my 1900ACSv2.
I have a few lines in rc_startup that write an SSL cert + key to /tmp and restart the web server.

Every build after 07/14 I tried, including r43904 (07/23) apparently fails to process the startup script as I end up with the default SSL certificate.

Is it just me? Did something change with regards to the rc_startup script?

This is what I'm baiscally doing:
Code:

cat <<EOF > /tmp/key.pem
-----BEGIN PRIVATE KEY-----
[...]
-----END PRIVATE KEY-----
EOF

cat <<EOF > /tmp/cert.pem
-----BEGIN CERTIFICATE-----
[...]
-----END CERTIFICATE-----
EOF

mount -o bind /tmp/cert.pem /etc/cert.pem
mount -o bind /tmp/key.pem /etc/key.pem

stopservice httpd
startservice httpd


Sebastian
Sponsor
seb666
DD-WRT Novice


Joined: 01 Mar 2017
Posts: 33

PostPosted: Sun Jul 26, 2020 12:33    Post subject: rc_startup issues Reply with quote
It's not just the SSL certificate that's only a symptom in my specfic setup.
I'm also setting IPv6 addresses, restarting the ntpclient and rewriting the resolv.conf file.
None of the commands are being executed at startup.

Also, when I copy the command block into the "commands" field in the UI and press "run commands", they are not executed.
I.e. none of the files are created, the IPv6 addresses are not set, ntpclient is not started.

I can take the whole block of commands and paste it into an open SSH window where they are executed without any issues.

Sebastian
seb666
DD-WRT Novice


Joined: 01 Mar 2017
Posts: 33

PostPosted: Sun Aug 02, 2020 20:27    Post subject: Reply with quote
Fixed in 08-02-2020-r44048.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum