2020-07-14 21:01:37 |
Ghada Khalil |
description |
Brief Description
-----------------
An intermediateCA-signed server certificate typically has 2x certs and 1xkey.
The server certificate, the signing intermediateCA's certificate and the server's key.
When trying to install this certificate, the following error occurs.
[sysadmin@controller-0 wcp-111(keystone_admin)]$ system certificate-install -m ssl endpoint-certificate-interca-signed.pem
WARNING: For security reasons, the original certificate,
containing the private key, will be removed,
once the private key is processed.
Certificate endpoint-certificate-interca-signed.pem not installed: There should be exactly one private key (ie, private_bytes) in the pem contents.
[sysadmin@controller-0 wcp-111(keystone_admin)]$
This is applicable to:
* -m ssl
* -m docker_registry
* and probably -m OpenStack
Hopefully, this is just a semantic check error in the front end of the API processing.
For the "-m ssl" certificate, the servers are haproxy and lighttpd.
From work on Secure Internal Endpoints feature, which uses intermediateCA-signed certificates, we know haproxy supports such certificates. Hopefully lighttpd and docker registry server does as well.
Severity
--------
Provide the severity of the defect.
<Minor: System/Feature is usable with minor issue>
Steps to Reproduce
------------------
You need to create intermediateCA-signed certificates.
You can do this with ssl or cert-manager on any WRCP system.
See me/gwaines for details on how to do it with cert-manager.
I created these intermediateCA signed certificates with cert-manager.
Notice that cert-manager correctly puts the intermediateCA certificate as well as the server certificate in the tls.crt field / file.
[sysadmin@controller-0 wcp-111(keystone_admin)]$ ls -l endpoint-certificate-interca-signed.*
-rw-r--r-- 1 sysadmin sys_protected 1070 Jun 11 20:32 endpoint-certificate-interca-signed.ca.crt
-rw-r--r-- 1 sysadmin sys_protected 2258 Jun 11 20:32 endpoint-certificate-interca-signed.tls.crt
-rw-r--r-- 1 sysadmin sys_protected 1679 Jun 11 20:32 endpoint-certificate-interca-signed.tls.key
[sysadmin@controller-0 wcp-111(keystone_admin)]$
[sysadmin@controller-0 wcp-111(keystone_admin)]$ cat endpoint-certificate-interca-signed.tls.crt
-----BEGIN CERTIFICATE-----
MIIDQDCCAiigAwIBAgIQWdKoE1qIF+vtEOJESDh9rTANBgkqhkiG9w0BAQsFADAg
MR4wHAYDVQQDExVjbG91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‘system certificate-install’ you have to concatenate the .crt file and the .key file.
[sysadmin@controller-0 wcp-111(keystone_admin)]$ cat endpoint-certificate-interca-signed.tls.crt endpoint-certificate-interca-signed.tls.key > endpoint-certificate-interca-signed.pem
[sysadmin@controller-0 wcp-111(keystone_admin)]$
[sysadmin@controller-0 wcp-111(keystone_admin)]$ cat endpoint-certificate-interca-signed.pem
-----BEGIN CERTIFICATE-----
MIIDQDCCAiigAwIBAgIQWdKoE1qIF+vtEOJESDh9rTANBgkqhkiG9w0BAQsFADAg
MR4wHAYDVQQDExVjbG91ZHBsYXRmb3JtLWludGVyY2EwHhcNMjAwNjExMTA1NjUz
WhcNMjAwOTA5MTA1NjUzWjBDMRYwFAYDVQQKEw1DbG91ZFBsYXRmb3JtMSkwJwYD
VQQDEyBjZ2NzLXdpbGRjYXQtMTExLmN1bXVsdXMud3JzLmNvbTCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBANwGWkXR6oLQ9ip+6n8SQ5f9C9iHARX6qhy/
ot3us3yQJETfH2lC7C+1JsKFxBn+voLjTupYoCVOpdesmAZTlcbM4roKCcBbs/ta
g8AuRufBWrWpeHrHd+kLGPoEukNHz0NaCI0ou/uiGj4LmwsX0yzZqd8RpGcTadVs
wxpzoXpw1wO4ZLI2qjuHdyBxRL1vz5LOxHoXt+niHDAwCqWPj6Ahzep0SFq7KwLv
rzlB7PEFWarF8/UdGFJSYtZB46XQeu5GveF5efnDv/W4yhtbQBmzeK9MhKBVUQ3G
esE2PtCxKFspHXVkKJhwEXCaLUl+zEP5qb5JfLLClPQnoELNGuECAwEAAaNTMFEw
DgYDVR0PAQH/BAQDAgWgMAwGA1UdEwEB/wQCMAAwMQYDVR0RBCowKIIgY2djcy13
aWxkY2F0LTExMS5jdW11bHVzLndycy5jb22HBIDglzkwDQYJKoZIhvcNAQELBQAD
ggEBAMeFJIbdNpBpo7+fmz9pJF/xafvgB0UMQN+Wnx5/H6GouxwEKeB7FrS9Bfrz
SvmyqINtr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BKGXr53a3/STHhdSZyscIUqadFoICulm+To+95LXu0zH9CNbcLUy+z67doIVnPT
TU8AwiktMcn08xawULBq2ZWHs97VVwpbPENi8DZpuQKmlgHQOrWFzz8HAoGBAOfv
mkzBujuCwQq07g2TgPDLbmu3rCRSOMZwpbGXyamsYKVEXayd0qx0M4EjbbLRh0CL
k79ZKnsKCplUDB5267SkKQzuH3mP2XRaophyurvy9QGrBbjbMukI41zGjqbY2JCC
nbjj89SAfP6lZbuG1OEaJsYgiTTQ05wCmOXBUHTXAoGAO83xlX5oORpetagtmx4I
1Y1Mc0CkVhtbw33WLpd/w7UtE/QZTvSrBMzYShlIfMrCECYQ+acxcmm2c14sBfOb
h2ykkeKHtuwPGqGpdQBIU8ybhETnXVCcyibKqa86gpxyvJSg2kEF4h/v+KEa9S7w
kTutIgk5CWESsdGgk5EnL0MCgYEAjpC9K8k5DDOHLWmhmj6810Z0jUnNSlYwB+pe
Lxe6Ic2PaobnfZ9VTCPxNMPuPiiFFqu1Gb1ZW2AEu9Lp0CARKmxtv0Dvn+1IITlF
EKgVGEpzR580WTiDxrJr7y8tqGlKVSm0gV29FzYTnwNT0T1DxUop40dEj259ZDxE
d5WoOukCgYAbszcAq8aU99TRIZCQ5YgdP9uvpEbIIuSn7EOkMCB++SU58VUYYrwV
qLrWxXR95o7EXW5CdmiQrNfCjCvZ0eh1H2Zwiqobe/WaRpoP1prGmj794OhwBi+y
GayMnK7nr1n9iMBMPMHRFb20shxcTDXp47JhV5rJC1KR9o99blELkA==
-----END RSA PRIVATE KEY-----
[sysadmin@controller-0 wcp-111(keystone_admin)]$
But “system certificate-install” fails due to incorrect semantic checks.
It actually thinks there are two keys ... when there are really two certs.
[sysadmin@controller-0 wcp-111(keystone_admin)]$ system certificate-install -m ssl endpoint-certificate-interca-signed.pem
WARNING: For security reasons, the original certificate,
containing the private key, will be removed,
once the private key is processed.
Certificate endpoint-certificate-interca-signed.pem not installed: There should be exactly one private key (ie, private_bytes) in the pem contents.
[sysadmin@controller-0 wcp-111(keystone_admin)]$
[sysadmin@controller-0 wcp-111(keystone_admin)]$
The code needs to separate the certs into one file and the private key into the other file.
It is valid to check that there is only one private key ... but there can be multiple certs.
Expected Behavior
------------------
Should accept the above pem file with 2x certs and 1x key.
And when client connects to the https server, the server should return both these certs to the client for certificate validation. And then client, with just the rootCA cert as trusted, should be able to validate the intermediateCA-signed certificate.
Actual Behavior
----------------
system certificate-install fails because it doesn't like the 2x certs in the pem file.
Reproducibility
---------------
100% reproducible
System Configuration
--------------------
All configs.
Branch/Pull Time/Commit
-----------------------
Current early june loads.
Last Pass
---------
Never
Timestamp/Logs
--------------
NA
Test Activity
-------------
Evaluation
Workaround
----------
Use only rootCA-signed certificates. |
Brief Description
-----------------
An intermediateCA-signed server certificate typically has 2x certs and 1xkey.
The server certificate, the signing intermediateCA's certificate and the server's key.
When trying to install this certificate, the following error occurs.
[sysadmin@controller-0 wcp-111(keystone_admin)]$ system certificate-install -m ssl endpoint-certificate-interca-signed.pem
WARNING: For security reasons, the original certificate,
containing the private key, will be removed,
once the private key is processed.
Certificate endpoint-certificate-interca-signed.pem not installed: There should be exactly one private key (ie, private_bytes) in the pem contents.
[sysadmin@controller-0 wcp-111(keystone_admin)]$
This is applicable to:
* -m ssl
* -m docker_registry
* and probably -m OpenStack
Hopefully, this is just a semantic check error in the front end of the API processing.
For the "-m ssl" certificate, the servers are haproxy and lighttpd.
From work on Secure Internal Endpoints feature, which uses intermediateCA-signed certificates, we know haproxy supports such certificates. Hopefully lighttpd and docker registry server does as well.
Severity
--------
Provide the severity of the defect.
<Minor: System/Feature is usable with minor issue>
Steps to Reproduce
------------------
You need to create intermediateCA-signed certificates.
You can do this with ssl or cert-manager on any system.
See me/gwaines for details on how to do it with cert-manager.
I created these intermediateCA signed certificates with cert-manager.
Notice that cert-manager correctly puts the intermediateCA certificate as well as the server certificate in the tls.crt field / file.
[sysadmin@controller-0 wcp-111(keystone_admin)]$ ls -l endpoint-certificate-interca-signed.*
-rw-r--r-- 1 sysadmin sys_protected 1070 Jun 11 20:32 endpoint-certificate-interca-signed.ca.crt
-rw-r--r-- 1 sysadmin sys_protected 2258 Jun 11 20:32 endpoint-certificate-interca-signed.tls.crt
-rw-r--r-- 1 sysadmin sys_protected 1679 Jun 11 20:32 endpoint-certificate-interca-signed.tls.key
[sysadmin@controller-0 wcp-111(keystone_admin)]$
[sysadmin@controller-0 wcp-111(keystone_admin)]$ cat endpoint-certificate-interca-signed.tls.crt
-----BEGIN CERTIFICATE-----
MIIDQDCCAiigAwIBAgIQWdKoE1qIF+vtEOJESDh9rTANBgkqhkiG9w0BAQsFADAg
MR4wHAYDVQQDExVjbG91ZHBsYXRmb3JtLWludGVyY2EwHhcNMjAwNjExMTA1NjUz
WhcNMjAwOTA5MTA1NjUzWjBDMRYwFAYDVQQKEw1DbG91ZFBsYXRmb3JtMSkwJwYD
VQQDEyBjZ2NzLXdpbGRjYXQtMTExLmN1bXVsdXMud3JzLmNvbTCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBANwGWkXR6oLQ9ip+6n8SQ5f9C9iHARX6qhy/
ot3us3yQJETfH2lC7C+1JsKFxBn+voLjTupYoCVOpdesmAZTlcbM4roKCcBbs/ta
g8AuRufBWrWpeHrHd+kLGPoEukNHz0NaCI0ou/uiGj4LmwsX0yzZqd8RpGcTadVs
wxpzoXpw1wO4ZLI2qjuHdyBxRL1vz5LOxHoXt+niHDAwCqWPj6Ahzep0SFq7KwLv
rzlB7PEFWarF8/UdGFJSYtZB46XQeu5GveF5efnDv/W4yhtbQBmzeK9MhKBVUQ3G
esE2PtCxKFspHXVkKJhwEXCaLUl+zEP5qb5JfLLClPQnoELNGuECAwEAAaNTMFEw
DgYDVR0PAQH/BAQDAgWgMAwGA1UdEwEB/wQCMAAwMQYDVR0RBCowKIIgY2djcy13
aWxkY2F0LTExMS5jdW11bHVzLndycy5jb22HBIDglzkwDQYJKoZIhvcNAQELBQAD
ggEBAMeFJIbdNpBpo7+fmz9p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P/uOLolkpfye3
KQYm0v6A6ccZWa3/ejd6eJzAlDw3zcVftWYy4f8mUnK86+20a4gxT6T0P0/pKkjY
wdmUb7poKX5ey5nRncfkODrAm/T26vMX7x6Jt8CbaefXHaCdZj5JF8Vatc4NVz7+
pRQWPptysHzZ4XrdBE6CrUp3+MHeKDyexhpwh1xVoK79555eGuTe/yvIrATPG2rn
l/LZlrwlPdKWxQMC76Gm6m4NQ4cS11/ftUai2TQHmugqFJobNLNFCtsdyN79VR5w
fW1LGc7rzAb82XMNYzMFPwE+JkhijmIgjmA4g0c=
-----END CERTIFICATE-----
[sysadmin@controller-0 wcp-111(keystone_admin)]$
In order to call ‘system certificate-install’ you have to concatenate the .crt file and the .key file.
[sysadmin@controller-0 wcp-111(keystone_admin)]$ cat endpoint-certificate-interca-signed.tls.crt endpoint-certificate-interca-signed.tls.key > endpoint-certificate-interca-signed.pem
[sysadmin@controller-0 wcp-111(keystone_admin)]$
[sysadmin@controller-0 wcp-111(keystone_admin)]$ cat endpoint-certificate-interca-signed.pem
-----BEGIN CERTIFICATE-----
MIIDQDCCAiigAwIBAgIQWdKoE1qIF+vtEOJESDh9rTANBgkqhkiG9w0BAQsFADAg
MR4wHAYDVQQDExVjbG91ZHBsYXRmb3JtLWludGVyY2EwHhcNMjAwNjExMTA1NjUz
WhcNMjAwOTA5MTA1NjUzWjBDMRYwFAYDVQQKEw1DbG91ZFBsYXRmb3JtMSkwJwYD
VQQDEyBjZ2NzLXdpbGRjYXQtMTExLmN1bXVsdXMud3JzLmNvbTCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBANwGWkXR6oLQ9ip+6n8SQ5f9C9iHARX6qhy/
ot3us3yQJETfH2lC7C+1JsKFxBn+voLjTupYoCVOpdesmAZTlcbM4roKCcBbs/ta
g8AuRufBWrWpeHrHd+kLGPoEukNHz0NaCI0ou/uiGj4LmwsX0yzZqd8RpGcTadVs
wxpzoXpw1wO4ZLI2qjuHdyBxRL1vz5LOxHoXt+ni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miQrNfCjCvZ0eh1H2Zwiqobe/WaRpoP1prGmj794OhwBi+y
GayMnK7nr1n9iMBMPMHRFb20shxcTDXp47JhV5rJC1KR9o99blELkA==
-----END RSA PRIVATE KEY-----
[sysadmin@controller-0 wcp-111(keystone_admin)]$
But “system certificate-install” fails due to incorrect semantic checks.
It actually thinks there are two keys ... when there are really two certs.
[sysadmin@controller-0 wcp-111(keystone_admin)]$ system certificate-install -m ssl endpoint-certificate-interca-signed.pem
WARNING: For security reasons, the original certificate,
containing the private key, will be removed,
once the private key is processed.
Certificate endpoint-certificate-interca-signed.pem not installed: There should be exactly one private key (ie, private_bytes) in the pem contents.
[sysadmin@controller-0 wcp-111(keystone_admin)]$
[sysadmin@controller-0 wcp-111(keystone_admin)]$
The code needs to separate the certs into one file and the private key into the other file.
It is valid to check that there is only one private key ... but there can be multiple certs.
Expected Behavior
------------------
Should accept the above pem file with 2x certs and 1x key.
And when client connects to the https server, the server should return both these certs to the client for certificate validation. And then client, with just the rootCA cert as trusted, should be able to validate the intermediateCA-signed certificate.
Actual Behavior
----------------
system certificate-install fails because it doesn't like the 2x certs in the pem file.
Reproducibility
---------------
100% reproducible
System Configuration
--------------------
All configs.
Branch/Pull Time/Commit
-----------------------
Current early june loads.
Last Pass
---------
Never
Timestamp/Logs
--------------
NA
Test Activity
-------------
Evaluation
Workaround
----------
Use only rootCA-signed certificates. |
|