Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

While attempting to regenerate SSL keys in Traffic Ops #1268

Closed
saoyag001 opened this issue Apr 5, 2016 · 2 comments · Fixed by #1321
Closed

While attempting to regenerate SSL keys in Traffic Ops #1268

saoyag001 opened this issue Apr 5, 2016 · 2 comments · Fixed by #1321

Comments

@saoyag001
Copy link

Traffic Ops fatal error occurred while processing your request.
Error at line ()
Can't call method "is_success" on an undefined value at /opt/traffic_ops/app/lib/UI/SslKeys.pm line 127.

Also, I moticed that deleting and rebuilding the Delivery Service will still pull the old keys, despite the DS being "deleted and rebuilt"

@smalenfant
Copy link
Contributor

Confirming issue on 1.5.0RC0.

@dneuman64
Copy link
Member

This issue only happens on http/https deliveryservices. The issue is this code:

my @example_urls    = UI::DeliveryService::get_example_urls( $self, $ds_id, $ds_regexes, $data, $domain_name, $data->protocol );    
my $hostname = $example_urls[0];
$hostname =~ /(https?:\/\/)(.*)/;

if the DS is https only then the first example_url is the https one, if the DS is http/https then its actually the second example_url (my $hostname = $example_urls[1];) that we want to use.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants