self-signed-ssl icon indicating copy to clipboard operation
self-signed-ssl copied to clipboard

Linux OSTYPE support while trusting certificate

Open edaveau opened this issue 2 years ago • 2 comments

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 avatar Aug 24 '21 12:08 edaveau

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 avatar Aug 24 '21 12:08 edaveau

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 avatar Aug 26 '21 19:08 lstellway