Select to view content in your preferred language

arcpy getportaldescription connexion fail (ssl error ?)

416
2
10-26-2022 11:29 AM
GuillaumeArnaud
Frequent Contributor

Hi,

i need to use arcpy.getportaldescription(url) but when i launch this on pycharm i have an error. I think it is because our certificate on server is self sign.

it s a dev environment so i can trust this certificate but how can i do this and where ? i allready add it in certificate trust on machine but it seems that it not work.

Do i install it and how : in pycharm ? in conda ? in arcgis pro ? on system ?

Thanks a lot for your help this issue cause me a lot of trouble !

Guillaume

Tags (3)
0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

Did you check out the other ArcGIS online/Portal arcpy functions like

SignInToPortal—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
DonMorrison1
Frequent Contributor

Can you post the error that you are seeing? The traceback stack trace might be useful too. Typically adding the self signed cert to your machine's (the one where you are running pycharm) cert store as a trusted root is all you need to do.  I agree with Dan in that you should try other arcpy api calls too to see if they have the same problem. 

0 Kudos