Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux OSTYPE support while trusting certificate #34

Open
edaveau opened this issue Aug 24, 2021 · 2 comments
Open

Linux OSTYPE support while trusting certificate #34

edaveau opened this issue Aug 24, 2021 · 2 comments

Comments

@edaveau
Copy link

edaveau commented Aug 24, 2021

Hi, this is not an issue per se, however I figured I'd let you know (plus might be useful to any Google lurkers around here). I downloaded your script to test it on a Debian Buster at work, and while running :
./self-signed-ssl --ca-only --trust
I got the following output :

Country Name (2 letter code) [AU]: XX
State or Province Name (full name) [Some-State]: XX
Locality Name (eg, city) []: XX
Organization Name (eg, company) [Internet Widgits Pty Ltd]: XX
Organizational Unit Name (eg, section) []: XX
Common Name (e.g. server FQDN or YOUR name) []: local-ca
Subject Alternative Name(s) (e.g. subdomains) []:
Email Address []:
Building certificate authority
Generating RSA private key, 2048 bit long modulus (2 primes)
...................................+++++
........+++++
e is 65537 (0x010001)

Error occurred while trusting certificate for OSTYPE 'linux-gnu'
Please ensure you are on a supported system and have the required packages installed.

Indeed, if I echo $OSTYPE, my result is not "linux", but "linux-gnu", which is not recognized by the script. So I had to edit the script to allow linux and linux-gnu in OSTYPEs in the "Trust certificate authority" part of your script ! =)

Thanks a lots for your work though, really impressive !

@edaveau
Copy link
Author

edaveau commented Aug 24, 2021

As said, I'll just leave this here for history reasons, but no need to leave the issue open as it's not really an issue.

@edaveau edaveau closed this as completed Aug 24, 2021
@edaveau edaveau changed the title Linux support Linux OSTYPE support while trusting certificate Aug 24, 2021
@lstellway
Copy link
Owner

Hi @edaveau !
Thank you for sharing the issue -
I will plan to address when I have time, but feel free to open a PR if you are available to 🙂

@lstellway lstellway reopened this Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants