error NSURLErrorFailingURLPeerTrustErrorKey

hi i need to print to a fiscal ssl printer but i haven't ssl certificate on board, is it possible disable ssl check? i'm using xcode with objectc, i already added plist key for ignore

ERROR: Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “192.168.0.33” which could put your confidential information at risk." UserInfo={NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x600003d91200>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, kCFStreamErrorDomainKey=3, kCFStreamErrorCodeKey=-9813, NSErrorPeerCertificateChainKey=(
Right, the connection is failing because you do not have a valid certificate at 192.168.0.33. For development purposes you could look at creating your own certificate authority and issuing a temporary certificate for development. Take a look below for instructions on how to get started with Keychain Access to do this:

Create your own certificate authority in Keychain Access on Mac
<https://support.apple.com/guide/keychain-access/create-your-own-certificate-authority-kyca2686/mac>

Create self-signed certificates in Keychain Access on Mac
<https://support.apple.com/guide/keychain-access/create-self-signed-certificates-kyca8916/mac>

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
is it implossible enable always a local ip https not trusted?
error NSURLErrorFailingURLPeerTrustErrorKey
 
 
Q