keytool -importkeystore -destkeystore key.p12 -deststoretype pkcs12 -srckeystore key.pfx
require 'restclient'
key_p12 = OpenSSL::PKCS12.new(File.read('key.p12'), 'password')
client = RestClient::Resource.new('https://kremlin.gov.ru/',
:ssl_client_key => key_p12,
:verify_ssl => OpenSSL::SSL::VERIFY_NONE)
client.get
@font-face {
font-family: 'Zalupa';
src: url("zalupa.ttf");
font-weight: normal;
font-style: normal; }
2017-09-19 09:11:19 +0300: HTTP parse error, malformed request (): #<Puma::HttpParserError: Invalid HTTP format, parsing fails.>
---
2017-09-19 09:11:19 +0300: HTTP parse error, malformed request (): #<Puma::HttpParserError: Invalid HTTP format, parsing fails.>
---
2017-09-19 09:11:20 +0300: HTTP parse error, malformed request (): #<Puma::HttpParserError: Invalid HTTP format, parsing fails.>
---
I, [2017-09-19T08:13:31.636894 #16825] INFO -- : [ee4fec83-f312-483b-815a-f68bd34476bf] Started GET "/v1/subscribers" for 1.1.1.1 at 2017-09-19 08:13:31 +0200
F, [2017-09-19T08:13:31.637855 #16825] FATAL -- : [ee4fec83-f312-483b-815a-f68bd34476bf]
F, [2017-09-19T08:13:31.637947 #16825] FATAL -- : [ee4fec83-f312-483b-815a-f68bd34476bf] ActionController::RoutingError (No route matches [GET] "/v1/books"):
F, [2017-09-19T08:13:31.638019 #16825] FATAL -- : [ee4fec83-f312-483b-815a-f68bd34476bf]
F, [2017-09-19T08:13:31.638085 #16825] FATAL -- : [ee4fec83-f312-483b-815a-f68bd34476bf] actionpack (5.1.2) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
respond_to do |format|
format.js {render js: 'alert('Achtung!');'}
end
def get_phone_models
@phone_models = PhoneModel.all
respond_to do |format|
format.js { render partial: "phone_model" }
end
end