Próbował już ktoś tworzyć aplikacje do wysyłania JPK zgodnie ze specyfikacją MF? Przebrnąć przez te wszystkie kompresje, kodowanie, generowanie xml, podpis elektroniczny i podłączenie się do bramki?
keytool -importcert -alias "server" -file test-e-dokumenty.mf.gov.pl_ssl.crt -keystore mf.gov.pl.server.keystore -deststorepass password1 Later I used this JKS file in my code and all worked as
@mmm234: thanks for you support very much! I converted .cer to .crt and it should work now. Previously I was a little bit confused as initially they provided .crt file and then, for prod. env., they gave a .cer file. Thanks very much!
#programowanie #sap #erp #jpk
On the http://www.mf.gov.pl/kontrola-skarbowa/dzialalnosc/jednolity-plik-kontrolny/-/asset_publisher/2NoO/content/specyfikacja-interfejsow-uslug-jednolitego-pliku-kontrolnego# website I've found certificate (http://www.mf.gov.pl/documents/764034/5134536/test-e-dokumenty.mf.gov.pl_ssl) which I used to establish secured connection with test environment (https://test-e-dokumenty.mf.gov.pl/).
I use Java so I converted test-e-dokumenty.mf.gov.plssl.crt to a JKS file using Java keytool command line app:
keytool -importcert -alias "server" -file test-e-dokumenty.mf.gov.pl_ssl.crt -keystore mf.gov.pl.server.keystore -deststorepass password1
Later I used this JKS file in my code and all worked as