LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2021, 10:24 AM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Question Enabled SSL on Nexus Container and Firefox browser is getting "PR_CONNECT_RESET_ERROR"


Not sure where to post this so I'll start here and I've been working on this for the last few days and not able to figure out where the issue lies.

I'm trying to enable SSL for a Nexus Container (v3.30.0) that lives on a RHEL 8 server.

Once enabling the cert and trying to get to the Nexus website from Firefox, I continue to get the following error: PR_CONNECT_RESET_ERRROR

I've tried basic troubleshooting, like clear tmp and cache from Firefox along with checking if there is any proxy servers and firewalls between the RHEL8 workstation and the server where the container is hosted and there isn't.

This is my process:

1. From the container, since Nexus is a Java based app, I'm using keytool to create a .jks file. From there I use the following command to validate it:

Code:
keytool -list -v -keystore name_of_cert_here.jks
Comes back okay.

2. From there, I generate a .pem file with the following command:

Code:
keytool -certreq -alias foo -file foo.pem -keystore name_of_cert_here.jks -ext 'SAN=DNS:xxxxxx,DNS:xxxxxxx,DNS:xxxxxxxxxx'
3. I don't have a solid command to confirm the .pem, so I use the cat command and confirm there is output.

4. We are self-signing the cert, so the .pem and .jks goes to a CA that lives on a Windows Domain Controller, but is still on the same network. From there, the operator creates an root cert, intermediate cert and server cert (all .cer files).

5. Once that is complete, I import the .cer files back into the container and confirm the .pem and .jks is owned by nexus:nexus with octal permissions of 644. The .cer files are owned by root:root and octal permissions of 640. Right now I'm storing them under /opt/sonatype/nexus. Is this the correct place to place them (or should it be /etc/ssl)?

6. I import the .cer files into the keystore in the following order: root, intermediate and server cer. Validate them each I go along with the keytool command.

7. I make a few other changes to config files based off of best practices that Nexus recommends:

https://help.sonatype.com/repomanage...onfiguring-ssl

https://support.sonatype.com/hc/en-u...tificate-Guide

8. Once done I restart the container, I can only reach the web UI via HTTP from a Firefox browser. If I try HTTPS, that is when I get the "PR_CONNECT_RESET_ERROR."

We don't have any DNS servers or DNS enabled, so we are only going off of /etc/hosts list. I did try to use the server's name in the DNS when creating the DNS entries. Is this not a good practice? Can I use IP addresses only? I tried to use IP address and the port number and it wasn't accepted.

I'm also able to use curl -v command against the ip address using HTTP and get a return, no results when trying HTTPS.

If anyone has any advise or other things I can do to test, please let me know.

thanks

Last edited by JockVSJock; 10-27-2021 at 10:26 AM.
 
Old 11-09-2021, 10:38 AM   #2
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Wanted to follow up on this as we figured this out. In case others were having this issue.

We have a firewall rule (not sure which one as I don't control this) on a Palo Alto device that was causing this error message. Once modified HTTPS started working for the UI.
 
  


Reply

Tags
container, nexus, ssl



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu Touch OTA-10 Officially Released for OnePlus One, Nexus 4, and Nexus 7 LXer Syndicated Linux News 0 04-08-2016 09:09 PM
LXer: Ubuntu Touch OTA-10 Update Is Coming on April 7 for Nexus 4 and Nexus 7 Devices LXer Syndicated Linux News 0 04-07-2016 03:42 AM
LXer: All current Nexuses, including Nexus 4 and 2012 Nexus 7, will get Lollipop LXer Syndicated Linux News 0 10-17-2014 10:00 AM
LXer: Ubuntu Touch Support Dropped for Galaxy Nexus, Nexus 7 (2012), and Nexus 10 LXer Syndicated Linux News 0 01-15-2014 08:31 PM
LXer: Welcome to Google's Nexus One – and the "Nexus" Device LXer Syndicated Linux News 0 01-06-2010 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration