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

docs: Self signed certificate fails on Ubuntu 16.04 #3903

Closed
harshavardhana opened this issue Mar 15, 2017 · 3 comments
Closed

docs: Self signed certificate fails on Ubuntu 16.04 #3903

harshavardhana opened this issue Mar 15, 2017 · 3 comments
Assignees

Comments

@harshavardhana
Copy link
Member

https://github.com/minio/minio/tree/master/docs/tls#with-openssl

Expected Behavior

Certificates are generated properly

Current Behavior

$ openssl genrsa -out private.key 2048
Generating RSA private key, 2048 bit long modulus
...................+++
......+++
e is 65537 (0x10001)

$ openssl req -new -x509 -days 3650 -key private.key -out public.crt -subj "/C=country/ST=state/L=location/O=organization/CN=domain"
problems making Certificate Request
140255692420760:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:a_mbstr.c:158:maxsize=2

Possible Solution

Country name should be

$ openssl req -new -x509 -days 3650 -key private.key -out public.crt -subj "/C=US/ST=state/L=location/O=organization/CN=domain"

Steps to Reproduce (for bugs)

Just follow the referred document link.

Context

To be able to configure SSL

Your Environment

All versions.

@koolhead17
Copy link
Contributor

This can be closed via #3957

@harshavardhana
Copy link
Member Author

Fixed by #3957

@lock
Copy link

lock bot commented May 6, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants