Discussion:
openssl error when getting servers from amazon
fogaws
2014-04-24 04:25:45 UTC
Permalink
I have been using this since last 2 weeks, but today i got one error like
*hostname "ec2.sa-east-1.amazonaws.com" does not match the server
certificate (OpenSSL::SSL::SSLError)*
@aws_credentials = {
:provider => "AWS",
:aws_access_key_id => access_key_id,
:aws_secret_access_key => secret_access_key
}
line 1: conn2 = Fog::Compute.new(@aws_credentials.merge(:region =>
'sa-east-1'))
line 2: conn2.servers.all.each do |server|
end
so i got that error in line 1, actually i don’t have server in this
'sa-east-1' region. but if give the region, which i have the server, it
will not give any errors.
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
fogaws
2014-04-24 13:41:45 UTC
Permalink
that’s working now, when i have use this

Excon.ssl_verify_peer = false, is there any issue with that?
Post by fogaws
I have been using this since last 2 weeks, but today i got one error like
*hostname "ec2.sa-east-1.amazonaws.com
<http://ec2.sa-east-1.amazonaws.com>" does not match the server certificate
(OpenSSL::SSL::SSLError)*
@aws_credentials = {
:provider => "AWS",
:aws_access_key_id => access_key_id,
:aws_secret_access_key => secret_access_key
}
'sa-east-1'))
line 2: conn2.servers.all.each do |server|
end
so i got that error in line 1, actually i don’t have server in this
'sa-east-1' region. but if give the region, which i have the server, it
will not give any errors.
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Kevin Menard
2014-04-24 14:55:19 UTC
Permalink
It'll work, but you open yourself up to MITM attacks. It's not
recommended by any means.



It'd be better to figure out why you're getting a hostname mismatch in
the first place.



--
Kevin





On Thu, Apr 24, 2014, at 9:41, fogaws wrote:

that’s working now, when i have use this

Excon.ssl_verify_peer = false, is there any issue with that?


On Thursday, April 24, 2014 9:55:45 AM UTC+5:30, fogaws wrote:

I have been using this since last 2 weeks, but today i got one error
like

hostname "[1]ec2.sa-east-1.amazonaws.com" does not match the server
certificate (OpenSSL::SSL::SSLError)

@aws_credentials = {

:provider => "AWS",

:aws_access_key_id => access_key_id,

:aws_secret_access_key => secret_access_key

}

line 1: conn2 = Fog::Compute.new(@aws_credentials.merge(:region =>
'sa-east-1'))

line 2: conn2.servers.all.each do |server|

end

so i got that error in line 1, actually i don’t have server in this
'sa-east-1' region. but if give the region, which i have the server, it
will not give any errors.

--

You received this message because you are subscribed to the Google
Groups "ruby-fog" group.

To unsubscribe from this group and stop receiving emails from it, send
an email to [2]ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org

For more options, visit [3]https://groups.google.com/d/optout.

References

1. http://ec2.sa-east-1.amazonaws.com/
2. mailto:ruby-fog+unsubscribe-/***@public.gmane.org
3. https://groups.google.com/d/optout
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
fogaws
2014-04-24 15:22:39 UTC
Permalink
ok thanks, actually i am trying to getting servers from all regions via
iterate from this regions
["ap-northeast-1","ap-southeast-1","ap-southeast-2","eu-west-1","sa-east-1","us-east-1","us-west-1","us-west-2"].
so i append each one of these regions into *region:* attribute in fog
object. so is there any issues with that regions list?
Post by Kevin Menard
It'll work, but you open yourself up to MITM attacks. It's not
recommended by any means.
It'd be better to figure out why you're getting a hostname mismatch in the
first place.
--
Kevin
that’s working now, when i have use this
Excon.ssl_verify_peer = false, is there any issue with that?
I have been using this since last 2 weeks, but today i got one error like
*hostname "ec2.sa-east-1.amazonaws.com
<http://ec2.sa-east-1.amazonaws.com>" does not match the server certificate
(OpenSSL::SSL::SSLError)*
@aws_credentials = {
:provider => "AWS",
:aws_access_key_id => access_key_id,
:aws_secret_access_key => secret_access_key
}
'sa-east-1'))
line 2: conn2.servers.all.each do |server|
end
so i got that error in line 1, actually i don’t have server in this
'sa-east-1' region. but if give the region, which i have the server, it
will not give any errors.
--
You received this message because you are subscribed to the Google Groups
"ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Loading...