-
Notifications
You must be signed in to change notification settings - Fork 31
Problems making certificate request #1
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
Comments
I had this recently on another project. It is fixable in the script
(contribution welcome) but the cause is that a too long domain name is
being requested and it has to go in the Alt Subject field of the
certificate instead! I'll have a look at another script that I fixed
recently (unrelated to this jenkins project) and let you know.
…On 31 August 2017 at 05:36, Juha Karttunen ***@***.***> wrote:
When running ./setup.sh, i get
Generating RSA private key, 2048 bit long modulus
..................................................+++
.....................................+++
e is 65537 (0x10001)
+ openssl req -sha256 -new -key key.pem -out csr.pem -config server-config
problems making Certificate Request
140529749358232:error:0D07A098:asn1 encoding routines:ASN1_mbstring_ncopy:string too short:a_mbstr.c:151:minsize=1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AATa62xRVVkUWUg76UiKRhXiJ5dWLeZlks5sdbmigaJpZM4PH3yR>
.
|
Ah wait you got the string too short error. Make sure you have all the
fields filled in and retry.
…On 31 August 2017 at 08:10, Dave Moten ***@***.***> wrote:
I had this recently on another project. It is fixable in the script
(contribution welcome) but the cause is that a too long domain name is
being requested and it has to go in the Alt Subject field of the
certificate instead! I'll have a look at another script that I fixed
recently (unrelated to this jenkins project) and let you know.
On 31 August 2017 at 05:36, Juha Karttunen ***@***.***>
wrote:
> When running ./setup.sh, i get
>
> Generating RSA private key, 2048 bit long modulus
> ..................................................+++
> .....................................+++
> e is 65537 (0x10001)
> + openssl req -sha256 -new -key key.pem -out csr.pem -config server-config
> problems making Certificate Request
> 140529749358232:error:0D07A098:asn1 encoding routines:ASN1_mbstring_ncopy:string too short:a_mbstr.c:151:minsize=1
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#1>, or mute the
> thread
> <https://github.com/notifications/unsubscribe-auth/AATa62xRVVkUWUg76UiKRhXiJ5dWLeZlks5sdbmigaJpZM4PH3yR>
> .
>
|
Closing because of inactivity. |
hello david, Thank you |
Hi, my googling suggests this happens when you don't specify one of the fields in the block at the top of setup.sh. Don't leave ORG_UNIT blank for instance and perhaps make sure it has at least 2 characters. |
I get this too.please your help
|
@liguangxian
|
first, thank you,this is my setup.sh ``#!/bin/bash data="$1" openssl req -nodes -days 1000000 -new -text -subj "/C=US/ST=Illinois/L=Chicago/O=IT/CN="${data} -out /opt/HighGo/Develop/data/server.req |
You need an OU entry as well |
It was org unit blank that did it for me |
also check in openssl.cnf what the default max setting is, |
For me it was that one of the values started with a "#" and was not quoted. This commented out the remainder of the line and value. It was a stupid mistake, but surrounding this value in quotes resolved that issue easy enough. |
@snydergd thanks for that. What base image did you use? I should update the readme with a later version of Ubuntu! |
@davidmoten I was just commenting on what configuration for openssl could cause this error, since I came across this thread for the error message matching what I received while using it. I assumed anyone else hitting the issue here might be for the same reason as I was. It seems like a user error scenario rather than an issue with this repo, but all the same I thought I would share my experience here for interested passers-by. |
In addition to the country, it was also required to set city |
When running ./setup.sh, i get
The text was updated successfully, but these errors were encountered: