You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2022/09/27 11:22:19 UTC

[GitHub] [trafficcontrol] mkrug1981 opened a new issue, #7089: Traffic Router default certificate configuration for port 443

mkrug1981 opened a new issue, #7089:
URL: https://github.com/apache/trafficcontrol/issues/7089

   ## This Improvement request (usability, performance, tech debt, etc.) affects these Traffic Control components:
   - Traffic Router
   
   ## Current behavior:
   Currently it seems not possible to configure the default TLS certificate or use a custom one.
   
   https://github.com/apache/trafficcontrol/blob/070df30363152ce63aa4111e7ad7678ca6c1d280/traffic_router/connector/src/main/java/org/apache/traffic_control/traffic_router/secure/CertificateRegistry.java#L81-L129
   
   It always uses  as Example SHA1WithRSA as sigalg. Would be nice to use SHA256WithRSA instead.
   
   Further more it looks like it is unclear how to provide a Default certificate via TO, Following code 
   
   https://github.com/apache/trafficcontrol/blob/070df30363152ce63aa4111e7ad7678ca6c1d280/traffic_router/connector/src/main/java/org/apache/traffic_control/traffic_router/secure/CertificateRegistry.java#L238-L253
   
   ## New behavior:
   Please make the default certificate configurable or at least allow to set values like sigalg via a configuration file.
   Besides it would be nice if a custom default certificate could be used rather than 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] zrhoffman closed issue #7089: Traffic Router default certificate configuration for port 443

Posted by GitBox <gi...@apache.org>.
zrhoffman closed issue #7089: Traffic Router default certificate configuration for port 443
URL: https://github.com/apache/trafficcontrol/issues/7089


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] mkrug1981 commented on issue #7089: Traffic Router default certificate configuration for port 443

Posted by GitBox <gi...@apache.org>.
mkrug1981 commented on issue #7089:
URL: https://github.com/apache/trafficcontrol/issues/7089#issuecomment-1259362218

   What I have tried already is to try and set a certificate via keyStore file with **CN=default.invalid**
   
   `[root@sn-tr0001-blstg conf]# keytool -list -v -keystore /opt/traffic_router/conf/keyStore.jks 
   Enter keystore password:  
   Keystore type: JKS
   Keystore provider: SUN
   
   Your keystore contains 1 entry
   
   Alias name: sn-tr0001-blstg
   Creation date: 26 Sep 2022
   Entry type: PrivateKeyEntry
   Certificate chain length: 1
   Certificate[1]:
   Owner: CN=default.invalid, OU=APIDefault, O=Apache Traffic Control, L=Denver, ST=Colorado, C=US
   Issuer: CN=default.invalid, OU=APIDefault, O=Apache Traffic Control, L=Denver, ST=Colorado, C=US
   Serial number: 7816ef6f
   Valid from: Mon Sep 26 19:55:54 UTC 2022 until: Thu Sep 23 19:55:54 UTC 2032
   Certificate fingerprints:
            SHA1: A7:8A:35:BE:9F:76:3E:C8:36:98:3A:A8:74:63:2E:78:24:34:30:00
            SHA256: 9A:F3:0A:13:3E:33:FE:5F:B5:38:C4:ED:27:A8:81:BC:70:6F:A9:6C:9C:A8:82:06:A7:F4:01:F4:05:2B:51:5D
   Signature algorithm name: SHA256withRSA
   Subject Public Key Algorithm: 2048-bit RSA key
   Version: 3`
   
   Unfortunately I still get the certificate back which the java code generates during TR startup
   [trafficcontrol/traffic_router/connector/src/main/java/org/apache/traffic_control/traffic_router/secure/CertificateRegistry.java](https://github.com/apache/trafficcontrol/blob/070df30363152ce63aa4111e7ad7678ca6c1d280/traffic_router/connector/src/main/java/org/apache/traffic_control/traffic_router/secure/CertificateRegistry.java#L81-L129)
   
   **curl Examples:**
   --- 1st the CN from the certificate


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org